Skip to content

Commit ab519da

Browse files
committed
fix: fixed PHP 8.1 fatal error
1 parent c555db5 commit ab519da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/src/phpMyFAQ/User/CurrentUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public function deleteFromSession(bool $deleteCookie = false): bool
456456
}
457457

458458
if ($deleteCookie) {
459-
$this->session->setCookie(Session::PMF_COOKIE_NAME_REMEMBERME, null);
459+
$this->session->setCookie(Session::PMF_COOKIE_NAME_REMEMBERME, '');
460460
}
461461

462462
session_destroy();

0 commit comments

Comments
 (0)