summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclasses/handler/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index d7a7010fe..50aa7b1a3 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -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);