Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
54a4f06c
Commit
54a4f06c
authored
May 22, 2001
by
Steven Wittens
Browse files
Let's hope fixing bugs will be just as easy next time :)
This baby is fixed.
parent
05438a0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/poll.module
View file @
54a4f06c
...
...
@@ -13,15 +13,15 @@ function Poll($poll) {
}
function
poll_cron
()
{
/*
$result = _node_get(array("type" => "poll"));
$result
=
_node_get
(
array
(
"type"
=>
"poll"
));
while
(
$poll
=
db_fetch_array
(
$result
))
{
if ($poll[active]) {
if
(
(
$poll
[
active
])
&&
(
$poll
[
runtime
]))
{
if
((
$poll
[
timestamp
]
+
$poll
[
runtime
])
<
time
())
{
$poll
[
active
]
=
0
;
node_save
(
$poll
,
array
(
active
));
}
}
}
*/
}
}
function
poll_get_choices_array
(
$poll
)
{
...
...
modules/poll/poll.module
View file @
54a4f06c
...
...
@@ -13,15 +13,15 @@ function Poll($poll) {
}
function
poll_cron
()
{
/*
$result = _node_get(array("type" => "poll"));
$result
=
_node_get
(
array
(
"type"
=>
"poll"
));
while
(
$poll
=
db_fetch_array
(
$result
))
{
if ($poll[active]) {
if
(
(
$poll
[
active
])
&&
(
$poll
[
runtime
]))
{
if
((
$poll
[
timestamp
]
+
$poll
[
runtime
])
<
time
())
{
$poll
[
active
]
=
0
;
node_save
(
$poll
,
array
(
active
));
}
}
}
*/
}
}
function
poll_get_choices_array
(
$poll
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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