mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
more precise check for available task
This commit is contained in:
parent
9eae07fae9
commit
b14326e1ad
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user