Commit 2fe0e80f authored by drumm's avatar drumm
Browse files

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

parent e7119ac7
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment