Skip to content

Commit

Permalink
Load empty array, if session is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotd authored Mar 18, 2019
1 parent 6c31b0d commit 07eefcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/contao/classes/Flash.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private static function getFlashBag(){
}

public static function load(){
self::$flashes = self::getSession()->get(self::$sessionKey);
self::$flashes = self::getSession()->get(self::$sessionKey) ?? [];
return self::$flashes;
}

Expand Down

0 comments on commit 07eefcc

Please sign in to comment.