diff options
Diffstat (limited to 'modules/trigger')
-rw-r--r-- | modules/trigger/trigger.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 6df47e686..aeb5bb0fd 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -195,7 +195,7 @@ function _trigger_normalize_node_context($type, $node) { // An action that works on users is being called in a node context. // Load the user object of the node's author. case 'user': - return user_load(array('uid' => $node->uid)); + return user_load($node->uid); } } @@ -298,7 +298,7 @@ function _trigger_normalize_comment_context($type, $comment) { // An action that works on users is being called in a comment context. case 'user': - return user_load(array('uid' => is_array($comment) ? $comment['uid'] : $comment->uid)); + return user_load(is_array($comment) ? $comment['uid'] : $comment->uid); } } |