diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-07-28 18:37:24 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-07-28 18:37:24 +0200 |
commit | 7c62086b7b95a10cc08ceb137ea5861d7cd78437 (patch) | |
tree | 941997870237672a83016e86e3ef366304731d58 | |
parent | 17dcc4abef4e2415a31bf7072744bdec1f862cd7 (diff) | |
download | rpg-7c62086b7b95a10cc08ceb137ea5861d7cd78437.tar.gz rpg-7c62086b7b95a10cc08ceb137ea5861d7cd78437.tar.bz2 |
only execute valid instructions FS#2432
-rw-r--r-- | inc/parserutils.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 54ccb05f3..3dbfc726f 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -677,7 +677,9 @@ function p_render($mode,$instructions,&$info){ // Loop through the instructions foreach ( $instructions as $instruction ) { // Execute the callback against the Renderer - call_user_func_array(array(&$Renderer, $instruction[0]), $instruction[1] ? $instruction[1] : array()); + if(method_exists($Renderer, $instruction[0])){ + call_user_func_array(array(&$Renderer, $instruction[0]), $instruction[1] ? $instruction[1] : array()); + } } //set info array |