Skip to content
Snippets Groups Projects
Commit c2122b83 authored by Christopher Smith's avatar Christopher Smith
Browse files

FS#1995, add a little defense to avoid warnings caused by bad wiki

syntax
parent c34bbd2f
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment