diff options
-rw-r--r-- | modules/poll/poll.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 56e3d75c4..d1f212435 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -439,9 +439,9 @@ function poll_load($nodes) { $poll->choice = db_select('poll_choice', 'c') ->addTag('translatable') ->fields('c', array('chid', 'chtext', 'chvotes', 'weight')) - ->condition('c', 'nid', $node->nid) + ->condition('c.nid', $node->nid) ->orderBy('weight') - ->fetchAllAssoc('chid', PDO::FETCH_ASSOC); + ->execute()->fetchAllAssoc('chid', PDO::FETCH_ASSOC); // Determine whether or not this user is allowed to vote. $poll->allowvotes = FALSE; |