Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/11/2008, 07:43
sisko
 
Fecha de Ingreso: junio-2007
Mensajes: 46
Antigüedad: 16 años, 11 meses
Puntos: 0
error con unset()

hola

mi problema es que esto:

Código PHP:
if($unit[pbuffs]){
foreach(
$unit[pbuffs] as &$pbuff){
$pbuff[timeleft]--;
if(
$pbuff[timeleft]<=0){unset($unit[pbuffs][$pbuff]);}

me tira el error
Warning: Illegal offset type in unset in C:\wamp\www\functions.php on line 46
(la linea 46 es la del unset)

alguien sabe como solucionarlo?

muchas gracias