Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2fe0e80f
Commit
2fe0e80f
authored
Dec 25, 2006
by
drumm
Browse files
#104617
by robertDouglass. Use more efficient stlye which hits the static cache.
parent
e7119ac7
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/poll/poll.module
View file @
2fe0e80f
...
@@ -555,7 +555,7 @@ function poll_cancel(&$node) {
...
@@ -555,7 +555,7 @@ function poll_cancel(&$node) {
global
$user
;
global
$user
;
$nid
=
arg
(
2
);
$nid
=
arg
(
2
);
if
(
$node
=
node_load
(
array
(
'nid'
=>
$nid
))
)
{
if
(
$node
=
node_load
(
$nid
))
{
if
(
$node
->
type
==
'poll'
&&
$node
->
allowvotes
==
FALSE
)
{
if
(
$node
->
type
==
'poll'
&&
$node
->
allowvotes
==
FALSE
)
{
if
(
$user
->
uid
)
{
if
(
$user
->
uid
)
{
db_query
(
'DELETE FROM {poll_votes} WHERE nid = %d and uid = %d'
,
$node
->
nid
,
$user
->
uid
);
db_query
(
'DELETE FROM {poll_votes} WHERE nid = %d and uid = %d'
,
$node
->
nid
,
$user
->
uid
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment