Fix: Better error management
This commit is contained in:
parent
8fed036c92
commit
378842e05f
@ -916,20 +916,14 @@ else
|
||||
if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
$result=$object->fetch($id,$ref);
|
||||
if ($result > 0)
|
||||
{
|
||||
$result=$object->fetch_lines();
|
||||
}
|
||||
if ($result < 0)
|
||||
{
|
||||
dol_print_error($db,$object->error);
|
||||
exit;
|
||||
}
|
||||
if ($result < 0) dol_print_error($db,$object->error);
|
||||
$result=$object->fetch_lines();
|
||||
if ($result < 0) dol_print_error($db,$object->error);
|
||||
$result=$object->fetch_thirdparty();
|
||||
if ($result < 0) dol_print_error($db,$object->error);
|
||||
|
||||
dol_htmloutput_errors($mesg,'');
|
||||
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
$nbofservices=count($object->lines);
|
||||
|
||||
$author = new User($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user