From 6f9bd982e2e77e466cfc4d6d33a2bd176700a3f1 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 19 Jan 2008 00:41:20 +0100
Subject: prevent error on buggy syntax plugin FS#1218

darcs-hash:20080118234120-7ad00-01defe99eda2568ef91acc679a35b25e8bdc40ed.gz
---
 lib/plugins/syntax.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib/plugins/syntax.php')

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]);
             }
-- 
cgit v1.2.3