Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 9472f1a

Browse files
committed
Merge pull request #105 from SilverioMiranda/patch-1
Update AbstractSessionArrayStorage.php
2 parents b5acadc + b9767b9 commit 9472f1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Storage/AbstractSessionArrayStorage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ public function setMetadata($key, $value, $overwriteArray = false)
358358
if (! isset($_SESSION['__ZF'])) {
359359
$_SESSION['__ZF'] = [];
360360
}
361+
if(! is_array($_SESSION['__ZF'])) {
362+
$_SESSION['__ZF'] = [];
363+
}
361364
if (isset($_SESSION['__ZF'][$key]) && is_array($value)) {
362365
if ($overwriteArray) {
363366
$_SESSION['__ZF'][$key] = $value;

0 commit comments

Comments
 (0)