Skip to content

Commit

Permalink
refactor(session):remove dup queries,refactorcode
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Pham <hoangmaths96@gmail.com>
  • Loading branch information
hweihwang committed May 8, 2024
1 parent e29b50f commit f0c0aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Middleware/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private function setControllerData(ISessionAwareController $controller): void {
if ($this->session) {
$controller->setSession($this->session);
}
if (null !== $this->userId) {
if ($this->userId !== null) {
$controller->setUserId($this->userId);
}
}
Expand Down

0 comments on commit f0c0aad

Please sign in to comment.