diff options
Diffstat (limited to 'modules/trigger/trigger.module')
-rw-r--r-- | modules/trigger/trigger.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 38788048b..61544246e 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -299,8 +299,7 @@ function trigger_comment($a1, $op) { actions_do($aid, $objects[$action_info['type']], $context); } else { - $comment = (object) $a1; - actions_do($aid, $comment, $context); + actions_do($aid, (object) $a1, $context); } } } @@ -393,8 +392,7 @@ function trigger_taxonomy($op, $type, $array) { 'op' => $op ); foreach ($aids as $aid => $action_info) { - $taxonomy_object = (object) $array; - actions_do($aid, $taxonomy_object, $context); + actions_do($aid, (object) $array, $context); } } |