- bugfixing lastrun-field update in getNextCronjobs();

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-27 08:12:52 +00:00
parent ddde0f7aff
commit 30f2de8f9e

View File

@@ -51,7 +51,7 @@ function getNextCronjobs()
while($row = $db->fetch_array($result))
{
$cron_files[] = $row['cronfile'];
$db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = UNIX_TIMESTAMP() WHERE `id` ='".(int)$result['id']."';");
$db->query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `lastrun` = UNIX_TIMESTAMP() WHERE `id` ='".(int)$row['id']."';");
}
return $cron_files;