Update viewcat.php
This commit is contained in:
parent
9a2e1df94a
commit
df5b2b6728
@ -795,7 +795,7 @@ if ($type == Categorie::TYPE_CONTACT) {
|
||||
$permission = $user->rights->societe->creer;
|
||||
|
||||
$contacts = $object->getObjectsInCateg($type, 0, $limit, $offset);
|
||||
if (!is_array($contacts) && $contacts < 0) {
|
||||
if (is_numeric($contacts) && $contacts < 0) {
|
||||
dol_print_error($db, $object->error, $object->errors);
|
||||
} else {
|
||||
// Form to add record into a category
|
||||
|
||||
Loading…
Reference in New Issue
Block a user