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() { function add() {
$feed = clean($_REQUEST['feed']); $feed = clean($_REQUEST['feed']);
$cat = clean($_REQUEST['cat']); $cat = clean($_REQUEST['cat'] ?? '');
$need_auth = isset($_REQUEST['need_auth']); $need_auth = isset($_REQUEST['need_auth']);
$login = $need_auth ? clean($_REQUEST['login']) : ''; $login = $need_auth ? clean($_REQUEST['login']) : '';
$pass = $need_auth ? clean($_REQUEST['pass']) : ''; $pass = $need_auth ? clean($_REQUEST['pass']) : '';