diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-07-28 11:12:27 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-07-28 11:12:27 +0200 |
commit | 6340dabc82297548ab6a8cfe3e913cdec0cac928 (patch) | |
tree | 4d670db0c4bd599150464ea6a2a16223ade1744a /inc | |
parent | 3009a773c06e6e5d731c42b12ad82272f9706f03 (diff) | |
download | rpg-6340dabc82297548ab6a8cfe3e913cdec0cac928.tar.gz rpg-6340dabc82297548ab6a8cfe3e913cdec0cac928.tar.bz2 |
avoid warnings when instructions with no parameters are rendered
see http://irc.dokuwiki.org/index.php?d=2012-07-28#msg403531
Diffstat (limited to 'inc')
-rw-r--r-- | inc/parserutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index bbe0db1c0..9f5473d47 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -664,7 +664,7 @@ 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]); + call_user_func_array(array(&$Renderer, $instruction[0]), $instruction[1] ? $instruction[1] : array()); } //set info array |