public/subscribe: fix warnings

This commit is contained in:
Andrew Dolgov 2021-02-08 08:20:30 +03:00
parent c1ad7acfb9
commit 3f972f8fed
1 changed files with 3 additions and 3 deletions

View File

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