Closed nerun closed 5 months ago
PHP Warning: Undefined array key 1 in /home/domain/public_html/lib/plugins/pageredirect/action.php on line 74
In action.php, line 74, I have changed:
action.php
list($page, $section) = explode('#', $page, 2);
to
list($page, $section) = array_pad(explode('#', $page, 2), 2, null);
It works, redirect works fine, and error.log disappears.
About PHP array_pad.
@glensc could you analyze this PR?
merged with https://github.com/glensc/dokuwiki-plugin-pageredirect/pull/47
In
action.php
, line 74, I have changed:to
It works, redirect works fine, and error.log disappears.
About PHP array_pad.