Seite 1 von 1

Hilfe, Fehler: Parse error viewtopic.php on line 481

Verfasst: 22.12.2004 10:04
von felixx
Hallo,

ich bekomme folgende Fehlermeldung:

Parse error: parse error in /var/www/web..../phpbb/viewtopic.php on line 481

Hier die ViewTopic line , Zeile 481 rot markiert
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars(($HTTP_GET_VARS['highlight'])));

for($i = 0; $i < sizeof($words); $i++)
{
if (trim($words[$i]) != '')
{
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
}
}
unset($words);

$highlight = urlencode($HTTP_GET_VARS['highlight']);
}

Ich habe keine Änderungen am Board vorgenommen.

Wo liegt der Fehler??

Verfasst: 22.12.2004 10:27
von Mungo
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars(($HTTP_GET_VARS['highlight'])));

for($i = 0; $i < sizeof($words); $i++)
{
if (trim($words[$i]) != '')
{
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
}
}
unset($words);

$highlight = urlencode($HTTP_GET_VARS['highlight']);
}
Da ist ne Klammer zuviel.

Verfasst: 22.12.2004 10:28
von felixx
wo??

Sorry habe die rote klammer erst jetzt gesehen :oops:

Verfasst: 22.12.2004 10:34
von felixx
Hallo,

vielen Dank für die sehr schnelle Hilfe!!!!

Funktioniert wieder 8) :wink:


Eine Frage hätte ich noch, warum ist der Fehler erst jetzt aufgetreten?

Ich hatte die Änderungen schon vor Wochen gemacht.