diff options
-rw-r--r-- | inc/parser/parser.php | 2 | ||||
-rw-r--r-- | lib/plugins/syntax.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php index 89ce4313d..38a59e256 100644 --- a/inc/parser/parser.php +++ b/inc/parser/parser.php @@ -156,7 +156,7 @@ class Doku_Parser_Mode { function postConnect() {} function accepts($mode) { - return in_array($mode, $this->allowedModes ); + return in_array($mode, (array) $this->allowedModes ); } } diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index eb70dd1ff..7ded173cd 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -134,7 +134,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { $this->allowedModes = array_merge($this->allowedModes, $PARSER_MODES[$mt]); } - $idx = array_search(substr(get_class($this), 7), $this->allowedModes); + $idx = array_search(substr(get_class($this), 7), (array) $this->allowedModes); if ($idx !== false) { unset($this->allowedModes[$idx]); } |