FIX check if $categories is not empty
This commit is contained in:
parent
e3f3e01c21
commit
48ce3ea4d3
@ -236,7 +236,9 @@ if ($action == 'update' && !empty($permissiontoadd)) {
|
||||
|
||||
if ($conf->categorie->enabled) {
|
||||
$categories = GETPOST('categories', 'array');
|
||||
$object->setCategories($categories);
|
||||
if (!empty($categories)) {
|
||||
$object->setCategories($categories);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user