From a26efbeb5a0ad8b90c8eb2b20f06d34e69d2958f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 31 May 2009 03:12:19 +0000 Subject: #408434 by mr.baileys and andypost: Fix fatal error in actions.inc after DBTNG conversion. --- includes/actions.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/actions.inc') diff --git a/includes/actions.inc b/includes/actions.inc index 7c7e301e6..d0091c1b1 100644 --- a/includes/actions.inc +++ b/includes/actions.inc @@ -47,7 +47,7 @@ function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a } $actions = array(); $available_actions = actions_list(); - $result = array(); + $actions_result = array(); if (is_array($action_ids)) { $conditions = array(); foreach ($action_ids as $action_id) { @@ -82,11 +82,11 @@ function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a if (is_numeric($action_id)) { $function = $params['callback']; $context = array_merge($context, $params); - $result[$action_id] = $function($object, $context, $a1, $a2); + $actions_result[$action_id] = $function($object, $context, $a1, $a2); } // Singleton action; $action_id is the function name. else { - $result[$action_id] = $action_id($object, $context, $a1, $a2); + $actions_result[$action_id] = $action_id($object, $context, $a1, $a2); } } } @@ -97,15 +97,15 @@ function actions_do($action_ids, $object = NULL, $context = NULL, $a1 = NULL, $a $action = db_query("SELECT callback, parameters FROM {actions} WHERE aid = :aid", array(':aid' => $action_ids))->fetchObject(); $function = $action->callback; $context = array_merge($context, unserialize($action->parameters)); - $result[$action_ids] = $function($object, $context, $a1, $a2); + $actions_result[$action_ids] = $function($object, $context, $a1, $a2); } // Singleton action; $action_ids is the function name. else { - $result[$action_ids] = $action_ids($object, $context, $a1, $a2); + $actions_result[$action_ids] = $action_ids($object, $context, $a1, $a2); } } $stack--; - return $result; + return $actions_result; } /** -- cgit v1.2.3