This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#715 userewrite=2 leads to php warning
Backend
2006-02-08Johannes Buchner
I got:
Warning: reset(): Passed variable is not an array or object in /home/www/johbuc6.coconia.net/inc/html.php on line 237
Warning: Variable passed to each() is not an array or object in /home/www/johbuc6.coconia.net/inc/html.php on line 238
when i switched to "use nice URLs"
I solved it:
in /inc/html.php, line ~234, in function function html_btn:
add
if(!is_array($params)) $params = array();
Because: $params might not be an array, especially if you use
$conf['userewrite'] = '2';
I would use impicit types, but not everyone has php5...
2006-02-24andi
This was probably caused by a third party template passing an invalid parameter. I added a typecheck anyway.