feeds/add: hide php8 warning

This commit is contained in:
Andrew Dolgov 2021-02-27 14:16:49 +03:00
parent 78a7b3642f
commit cf5c7c4f29
1 changed files with 1 additions and 1 deletions

View File

@ -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']) : '';