Add error management
This commit is contained in:
parent
eef89437aa
commit
d1e70fcd67
@ -121,8 +121,9 @@ if ($filter == 'outofdate')
|
|||||||
$nbtotalofrecords = 0;
|
$nbtotalofrecords = 0;
|
||||||
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
||||||
{
|
{
|
||||||
$result = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
$nbtotalofrecords = $db->num_rows($result);
|
if ($resql) $nbtotalofrecords = $db->num_rows($result);
|
||||||
|
else dol_print_error($db);
|
||||||
}
|
}
|
||||||
// Add order and limit
|
// Add order and limit
|
||||||
$sql.= " ".$db->order($sortfield,$sortorder);
|
$sql.= " ".$db->order($sortfield,$sortorder);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user