Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/07/2009, 13:53
Avatar de anf
anf
 
Fecha de Ingreso: junio-2009
Mensajes: 30
Antigüedad: 15 años, 8 meses
Puntos: 4
Respuesta: Warning: Invalid argument supplied for foreach() in

Código PHP:
if ($item ContentHelperRoute::_findItem($needles)) {
if (isset(
$item->query['layout'])) { $link .= '&layout='.$item->query['layout']; }
$link .= '&Itemid='.$item->id;
}; 
/* <- Aquí no sobra ;? Pregunto. */

$match null; { /* <- Y este bracket ? */
    
foreach($needles as $needle => $id) {
        foreach(
$items as $item) { if ((@$item->query['view'] == $needle) && (@$item->query['id'] == $id)) { $match $item; break; } }
    }
    if(isset(
$match)) { break; }
}
return 
$match
Hay cosas que no entiendo, esto esta bien }; ?