Skip to content
Permalink
Browse files

Avoiding a notice when reading missing session data

  • Loading branch information...
lorenzo committed Sep 13, 2015
1 parent a2a381c commit 92c5466d762f88a16c610c3852776e4c29bc7eb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Network/Session.php
@@ -437,7 +437,7 @@ public function write($name, $value = null)
$write = [$name => $value];
}
$data = $_SESSION ?: [];
$data = isset($_SESSION) ? $_SESSION : [];
foreach ($write as $key => $val) {
$data = Hash::insert($data, $key, $val);
}

0 comments on commit 92c5466

Please sign in to comment.
You can’t perform that action at this time.