From 6340dabc82297548ab6a8cfe3e913cdec0cac928 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 28 Jul 2012 11:12:27 +0200
Subject: [PATCH] avoid warnings when instructions with no parameters are
 rendered

see http://irc.dokuwiki.org/index.php?d=2012-07-28#msg403531
---
 inc/parserutils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
GitLab