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
7316210df6
commit
2c898b45e3
@ -69,7 +69,7 @@ if ($id > 0 || $ref) {
|
|||||||
$object->fetch($id, $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
|
// Security check
|
||||||
if (empty($conf->variants->enabled)) {
|
if (empty($conf->variants->enabled)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user