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

This baby is fixed.
3-00
Steven Wittens 2001-05-22 21:44:48 +00:00
parent 05438a0d8b
commit 54a4f06ce4
2 changed files with 6 additions and 6 deletions

View File

@ -13,15 +13,15 @@ class 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) {

View File

@ -13,15 +13,15 @@ class 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) {