We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a262a50 commit 51b2821Copy full SHA for 51b2821
app/code/Magento/Security/Model/AdminSessionInfo.php
@@ -133,7 +133,11 @@ public function isSessionExpired()
133
$currentTime = $this->dateTime->gmtTimestamp();
134
$lastUpdatedTime = $this->getUpdatedAt();
135
if (!is_numeric($lastUpdatedTime)) {
136
- $lastUpdatedTime = strtotime($lastUpdatedTime);
+ if($lastUpdatedTime === null) {
137
+ $lastUpdatedTime = 0;
138
+ }else {
139
+ $lastUpdatedTime = strtotime($lastUpdatedTime);
140
+ }
141
}
142
143
return $lastUpdatedTime <= ($currentTime - $lifetime) ? true : false;
0 commit comments