PDA


View Full Version : Warning: str_repeat(): Second argument ...


utw-Mephisto
08-08-2005, 06:06 PM
On the default page I can see the error


Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /modules/navigation.php on line 112


Code of line 112


$navmark = iif($navlinks['level'] == 1, $mod_options['portal_navigation_mark1'], str_repeat(' ', ($navlinks['level'] - 1)) . $mod_options['portal_navigation_mark2']);


I though it has to be


$navmark = if ....


But then I get


Parse error: parse error, unexpected T_IF in /mounted-storage/home5/sub004/sc12836-KCNW/www/vbtest/modules/navigation.php on line 112

utw-Mephisto
08-08-2005, 06:58 PM
Got it,

I put in a 2nd link in the modul navigation and the field "level" was empty.
Maybe there should be an error message or something when this field is empty.