diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-25 09:48:42 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-25 09:48:42 +0000 |
commit | 2fe0e80f8d1d554ab9d140cbcd81459bc5527360 (patch) | |
tree | 0c96c1447fbb5e7dc65fd5fa55ccdbd74a3d5160 /modules | |
parent | e7119ac7227fa1215957761d22cfd7676f2b69ca (diff) | |
download | brdo-2fe0e80f8d1d554ab9d140cbcd81459bc5527360.tar.gz brdo-2fe0e80f8d1d554ab9d140cbcd81459bc5527360.tar.bz2 |
#104617 by robertDouglass. Use more efficient stlye which hits the static cache.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/poll/poll.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index fc3715f13..195d3b3b8 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -555,7 +555,7 @@ function poll_cancel(&$node) { global $user; $nid = arg(2); - if ($node = node_load(array('nid' => $nid))) { + if ($node = node_load($nid)) { if ($node->type == 'poll' && $node->allowvotes == FALSE) { if ($user->uid) { db_query('DELETE FROM {poll_votes} WHERE nid = %d and uid = %d', $node->nid, $user->uid); |