bugfixing but not finished

This commit is contained in:
Michael Kaufmann (d00p)
2010-01-26 14:58:23 +00:00
parent 49afae31ea
commit 3e09f51686
3 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@
function getIntervalOptions()
{
global $db, $lng;
global $db, $lng, $cronlog;
$query = "SELECT DISTINCT `interval` FROM `" . TABLE_PANEL_CRONRUNS . "` ORDER BY `interval` ASC;";
$result = $db->query($query);
@@ -33,7 +33,7 @@ function getIntervalOptions()
}
else
{
$log->logAction(ADM_ACTION, LOG_ERROR, "Invalid SQL-Interval ".$row['interval']." detected. Please fix this in the database.");
$cronlog->logAction(CRON_ACTION, LOG_ERROR, "Invalid SQL-Interval ".$row['interval']." detected. Please fix this in the database.");
}
}

View File

@@ -24,10 +24,10 @@
*/
function getNextCronjobs()
{
global $db;
$sql = "SELECT `id`, `cronfile` FROM `".TABLE_PANEL_CRONRUNS."` WHERE `interval` <> '0' AND (";
/*
* 5M - 5 minute cronjob (reqular)
*/
$intervals = getIntervalOptions();
$x = 0;
@@ -43,7 +43,7 @@ function getNextCronjobs()
$x++;
}
$sql.= ');';
$sql.= ');';
$result = $db->query($query);