FIX block page if cant fetch

This commit is contained in:
atm-quentin 2018-11-13 10:13:52 +01:00
parent a8ab666d62
commit e004fc2f5b

View File

@ -122,6 +122,12 @@ if ($id > 0 || ! empty($ref))
$search_account = $object->id; // Force the search field on id of account
}
if (! ($object->id > 0) )
{
$langs->load("errors");
print($langs->trans('ErrorRecordNotFound'));
exit;
}
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('banktransactionlist', $contextpage));