PHP - cannot use a scalar as an array warning
generate an error : cannot use a scalar as an array warning (even on php V7)
This commit is contained in:
parent
a02c0f55fb
commit
69626875fc
@ -69,7 +69,7 @@ if ($id > 0 || $ref) {
|
||||
$object->fetch($id, $ref);
|
||||
}
|
||||
|
||||
$selectedvariant = !empty($_SESSION['addvariant_'.$object->id]) ? $_SESSION['addvariant_'.$object->id] : 0;
|
||||
$selectedvariant = !empty($_SESSION['addvariant_'.$object->id]) ? $_SESSION['addvariant_'.$object->id] : Array();
|
||||
|
||||
// Security check
|
||||
if (empty($conf->variants->enabled)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user