If search of cron job is empty, we must show empty list
This commit is contained in:
parent
dd1d3c866c
commit
0ff42b5f8a
@ -238,8 +238,7 @@ $result=$db->query($sql);
|
|||||||
if (! $result) dol_print_error($db);
|
if (! $result) dol_print_error($db);
|
||||||
|
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
if ($num > 0)
|
|
||||||
{
|
|
||||||
$param='&status='.$status;
|
$param='&status='.$status;
|
||||||
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
||||||
@ -333,6 +332,8 @@ if ($num > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
if ($num > 0)
|
||||||
|
{
|
||||||
// Loop on each job
|
// Loop on each job
|
||||||
$style='pair';
|
$style='pair';
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
@ -464,7 +465,7 @@ if ($num > 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<tr><td colspan="9">'.$langs->trans('CronNoJobs').'</td></tr>';
|
print '<tr><td colspan="9" class="opacitymedium">'.$langs->trans('CronNoJobs').'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user