#104617 by robertDouglass. Use more efficient stlye which hits the static cache.

5.x
Neil Drumm 2006-12-25 09:48:42 +00:00
parent e7119ac722
commit 2fe0e80f8d
1 changed files with 1 additions and 1 deletions

View File

@ -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);