From 3f7261cb82cc8d7a49e5e0865860d380ffcd4136 Mon Sep 17 00:00:00 2001 From: Rudolph Gottesheim Date: Wed, 15 Jun 2016 16:13:11 +0200 Subject: [PATCH] Clearer condition in SessionManager See https://github.com/magento/magento2/commit/d2a823ba0b1187120d2baf657a4d971994357e8e --- lib/internal/Magento/Framework/Session/SessionManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/Session/SessionManager.php b/lib/internal/Magento/Framework/Session/SessionManager.php index e8013b024f438..64dde8b68d41f 100644 --- a/lib/internal/Magento/Framework/Session/SessionManager.php +++ b/lib/internal/Magento/Framework/Session/SessionManager.php @@ -238,7 +238,7 @@ public function isSessionExists() public function getData($key = '', $clear = false) { $data = $this->storage->getData($key); - if ($clear && isset($data)) { + if ($clear && $data !== null) { $this->storage->unsetData($key); } return $data;