summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2010-10-03 16:44:58 +0100
committerChristopher Smith <chris@jalakai.co.uk>2010-10-03 16:44:58 +0100
commitc2122b83f7b1516bad0b5be5d9c617cffcec8f9d (patch)
tree7030a5d0592230e05e176ab686f65038b6de4f3d /inc/parser
parentc34bbd2f46f883ca3f961b2b21981ac53920958a (diff)
downloadrpg-c2122b83f7b1516bad0b5be5d9c617cffcec8f9d.tar.gz
rpg-c2122b83f7b1516bad0b5be5d9c617cffcec8f9d.tar.bz2
FS#1995, add a little defense to avoid warnings caused by bad wiki
syntax
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/renderer.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php
index 81c33fe62..b54ccf050 100644
--- a/inc/parser/renderer.php
+++ b/inc/parser/renderer.php
@@ -74,7 +74,9 @@ class Doku_Renderer extends DokuWiki_Plugin {
foreach ( $instructions as $instruction ) {
// execute the callback against ourself
- call_user_func_array(array(&$this, $instruction[0]),$instruction[1]);
+ if (method_exists($this,$instruction[0])) {
+ call_user_func_array(array($this, $instruction[0]),$instruction[1]);
+ }
}
}