Skip to content

Commit 2d1b123

Browse files
cs fix
1 parent 3cbe191 commit 2d1b123

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Templating/GlobalVariables.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public function getRequest()
7070
*/
7171
public function getSession()
7272
{
73-
return ($request = $this->getRequest()) ? $request->getSession() : null;
73+
$request = $this->getRequest();
74+
75+
return $request && $request->hasSession() ? $request->getSession() : null;
7476
}
7577

7678
/**

0 commit comments

Comments
 (0)