more precise check for available task

This commit is contained in:
Uwe Steinmann 2020-06-27 12:27:59 +02:00
parent 9eae07fae9
commit b14326e1ad

View File

@ -312,7 +312,7 @@ $(document).ready( function() {
$tasks = $scheduler->getTasks();
if(!$tasks)
return;
$this->contentHeading(getMLText("scheduler_class_tasks"));
echo "<table class=\"table _table-condensed\">\n";
print "<thead>\n<tr>\n";
@ -323,8 +323,8 @@ $(document).ready( function() {
print "<th>".getMLText('task_last_run')."</th>\n";
print "<th></th>\n";
print "</tr></thead><tbody>\n";
foreach($tasks as $task) {
if(!isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()]))
foreach($tasks as $task) {
if(!isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()][$task->getTask()]))
$class = 'error';
else
$class = 'success';