summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-02-03 21:18:56 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-02-03 21:18:56 +0100
commit3b7488710df8a72be396293874215445851b66b9 (patch)
treee70ff68261ab6f8a2e1a5f1e30d50fb245c601fa /inc/parserutils.php
parentb856f7dff0fe4c6a9f2fe04fd26c1ccde0aa233c (diff)
downloadrpg-3b7488710df8a72be396293874215445851b66b9.tar.gz
rpg-3b7488710df8a72be396293874215445851b66b9.tar.bz2
cast 2nd param to array when executing render instructions FS#1880
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 471d46903..631e4149c 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -423,7 +423,7 @@ function p_render_metadata($id, $orig){
// 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]), (array) $instruction[1]);
}
$evt->result = array('current'=>$renderer->meta,'persistent'=>$renderer->persistent);