Skip to content

Commit e7b400b

Browse files
Update app/code/Magento/Security/Model/AdminSessionInfo.php
Co-authored-by: Ihor Sviziev <[email protected]>
1 parent 15b1b8b commit e7b400b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Security/Model/AdminSessionInfo.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,7 @@ public function isSessionExpired()
134134
$currentTime = $this->dateTime->gmtTimestamp();
135135
$lastUpdatedTime = $this->getUpdatedAt();
136136
if (!is_numeric($lastUpdatedTime)) {
137-
if ($lastUpdatedTime === null) {
138-
$lastUpdatedTime = 0;
139-
} else {
140-
$lastUpdatedTime = strtotime($lastUpdatedTime);
141-
}
137+
$lastUpdatedTime = $lastUpdatedTime === null ? 0 : strtotime($lastUpdatedTime);
142138
}
143139

144140
return $lastUpdatedTime <= ($currentTime - $lifetime) ? true : false;

0 commit comments

Comments
 (0)