From 30f2de8f9e310a5dc7d56e5cb8a8e7372fef1c25 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 27 Jan 2010 08:12:52 +0000 Subject: [PATCH] - bugfixing lastrun-field update in getNextCronjobs(); --- lib/functions/froxlor/function.getNextCronjobs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/froxlor/function.getNextCronjobs.php b/lib/functions/froxlor/function.getNextCronjobs.php index f0052812..54ed2f47 100644 --- a/lib/functions/froxlor/function.getNextCronjobs.php +++ b/lib/functions/froxlor/function.getNextCronjobs.php @@ -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;