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