Skip to content

Commit 7b06ff4

Browse files
committed
Fix undefined array index errors
1 parent 9217c09 commit 7b06ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,10 @@ public function rewrite_include($match, $pos, $state, $plugin, helper_plugin_mov
343343
$syntax = substr($match, 2, -2); // strip markup
344344
$replacers = explode('|', $syntax);
345345
$syntax = array_shift($replacers);
346-
list($syntax, $flags) = explode('&', $syntax, 2);
346+
list($syntax, $flags) = array_pad(explode('&', $syntax, 2), 2, "");
347347

348348
// break the pattern up into its parts
349-
list($mode, $page, $sect) = preg_split('/>|#/u', $syntax, 3);
349+
list($mode, $page, $sect) = array_pad(preg_split('/>|#/u', $syntax, 3), 3, "");
350350

351351
if (method_exists($handler, 'adaptRelativeId')) { // move plugin before version 2015-05-16
352352
$newpage = $handler->adaptRelativeId($page);

0 commit comments

Comments
 (0)