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