From cf5c7c4f2947cc949132df73bbbb0c2c49441fb0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 27 Feb 2021 14:16:49 +0300 Subject: [PATCH] feeds/add: hide php8 warning --- classes/feeds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/feeds.php b/classes/feeds.php index 465e2c991..1ab0ca3e3 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -963,7 +963,7 @@ class Feeds extends Handler_Protected { function add() { $feed = clean($_REQUEST['feed']); - $cat = clean($_REQUEST['cat']); + $cat = clean($_REQUEST['cat'] ?? ''); $need_auth = isset($_REQUEST['need_auth']); $login = $need_auth ? clean($_REQUEST['login']) : ''; $pass = $need_auth ? clean($_REQUEST['pass']) : '';