mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +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();
|
$tasks = $scheduler->getTasks();
|
||||||
if(!$tasks)
|
if(!$tasks)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$this->contentHeading(getMLText("scheduler_class_tasks"));
|
$this->contentHeading(getMLText("scheduler_class_tasks"));
|
||||||
echo "<table class=\"table _table-condensed\">\n";
|
echo "<table class=\"table _table-condensed\">\n";
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
|
@ -323,8 +323,8 @@ $(document).ready( function() {
|
||||||
print "<th>".getMLText('task_last_run')."</th>\n";
|
print "<th>".getMLText('task_last_run')."</th>\n";
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "</tr></thead><tbody>\n";
|
print "</tr></thead><tbody>\n";
|
||||||
foreach($tasks as $task) {
|
foreach($tasks as $task) {
|
||||||
if(!isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()]))
|
if(!isset($GLOBALS['SEEDDMS_SCHEDULER']['tasks'][$task->getExtension()][$task->getTask()]))
|
||||||
$class = 'error';
|
$class = 'error';
|
||||||
else
|
else
|
||||||
$class = 'success';
|
$class = 'success';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user