En plagsom feilmelding som dukker opp nå og da

Started by simongravvold, March 29, 2012, 04:20:02 PM

Previous topic - Next topic

simongravvold

Jeg blir snart GAL!!
Denne feilmeldingen dukker opp over alt -_-

); // You can only remove it if it's available. if (!in_array($function, $functions)) return; $functions = array_diff($functions, array($function)); $modSettings[$hook] = implode(',', $functions); } ?>

Feilmeldingen kommer ikke hele tiden, men av og til... Jeg håper det finner en grei og enkel løsning på dette.

simongravvold

Jeg fant feilen selv.
Feilen var nederst i filen Subs.php

Feilen:
($function)))));
}

// Turn the function list into something usable.
$functions = empty($modSettings[$hook]) ? array() : explode(',', $modSettings[$hook]);

// You can only remove it if it's available.
if (!in_array($function, $functions))
return;

$functions = array_diff($functions, array($function));
$modSettings[$hook] = implode(',', $functions);
}

?>);

// You can only remove it if it's available.
if (!in_array($function, $functions))
return;

$functions = array_diff($functions, array($function));
$modSettings[$hook] = implode(',', $functions);
}

?>


Riktig kode:

($function)))));
}

// Turn the function list into something usable.
$functions = empty($modSettings[$hook]) ? array() : explode(',', $modSettings[$hook]);

// You can only remove it if it's available.
if (!in_array($function, $functions))
return;

$functions = array_diff($functions, array($function));
$modSettings[$hook] = implode(',', $functions);
}

?>

Advertisement: