public/getUnread: fix PHP8 warning if fresh optional parameter is not given
This commit is contained in:
parent
718af52a1b
commit
a28d9582e8
|
@ -260,7 +260,7 @@ class Handler_Public extends Handler {
|
|||
|
||||
function getUnread(): void {
|
||||
$login = clean($_REQUEST["login"]);
|
||||
$fresh = clean($_REQUEST["fresh"]) == "1";
|
||||
$fresh = clean($_REQUEST["fresh"] ?? "0") == "1";
|
||||
|
||||
$uid = UserHelper::find_user_by_login($login);
|
||||
|
||||
|
|
Loading…
Reference in New Issue