Skip to content
Snippets Groups Projects
Commit 6340dabc authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid warnings when instructions with no parameters are rendered

see http://irc.dokuwiki.org/index.php?d=2012-07-28#msg403531
parent 3009a773
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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