Simple Machines Community Forum

SMF Support => Language Specific Support => Svenska/Norsk/Dansk (Swedish/Norwegian/Danish) => Topic started by: simongravvold on March 29, 2012, 04:20:02 PM

Title: En plagsom feilmelding som dukker opp nå og da
Post by: simongravvold on March 29, 2012, 04:20:02 PM
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.
Title: Re: En plagsom feilmelding som dukker opp nå og da
Post by: simongravvold on March 30, 2012, 12:36:05 PM
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);
}

?>