From 3f972f8fede4ef2d1c47f9c55b5ca7b9a92dfd9c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 08:20:30 +0300 Subject: [PATCH] public/subscribe: fix warnings --- classes/handler/public.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 0ddf61e80..67ad9c5cc 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -729,10 +729,10 @@ class Handler_Public extends Handler { UserHelper::login_sequence(); } - if ($_SESSION["uid"]) { + if (!empty($_SESSION["uid"])) { - $feed_url = clean($_REQUEST["feed_url"]); - $csrf_token = clean($_POST["csrf_token"]); + $feed_url = clean($_REQUEST["feed_url"] ?? ""); + $csrf_token = clean($_POST["csrf_token"] ?? ""); header('Content-Type: text/html; charset=utf-8'); ?>