Skip to content

Commit

Permalink
Merge pull request #2450 from nowackipawel/patch-76
Browse files Browse the repository at this point in the history
CRITICAL when $_SESSION is null / Argument 2 passed to dot_array_search() must be []
  • Loading branch information
MGatner authored Dec 24, 2019
2 parents 507462b + 8758dbe commit 06d7e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ public function set($data, $value = null)
*/
public function get(string $key = null)
{
if (! empty($key) && ! is_null($value = dot_array_search($key, $_SESSION)))
if (! empty($key) && ! is_null($value = dot_array_search($key, $_SESSION??[])))
{
return $value;
}
Expand Down

0 comments on commit 06d7e2a

Please sign in to comment.