FIX - PHP8 Warnning
This commit is contained in:
parent
212a0f838a
commit
62faa8ebcc
@ -41,7 +41,7 @@ if ($action == 'update' && is_array($arrayofparameters) && !empty($user->admin))
|
|||||||
foreach ($arrayofparameters as $key => $val) {
|
foreach ($arrayofparameters as $key => $val) {
|
||||||
// Modify constant only if key was posted (avoid resetting key to the null value)
|
// Modify constant only if key was posted (avoid resetting key to the null value)
|
||||||
if (GETPOSTISSET($key)) {
|
if (GETPOSTISSET($key)) {
|
||||||
if (preg_match('/category:/', $val['type'])) {
|
if (isset($val['type']) && preg_match('/category:/', $val['type'])) {
|
||||||
if (GETPOST($key, 'int') == '-1') {
|
if (GETPOST($key, 'int') == '-1') {
|
||||||
$val_const = '';
|
$val_const = '';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user