Commit 54a4f06c authored by Steven Wittens's avatar Steven Wittens

Let's hope fixing bugs will be just as easy next time :)

This baby is fixed.
parent 05438a0d
......@@ -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) {
......
......@@ -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) {
......
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