From d630a92c4044d46831e2f0a4b86235a226498f6f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 9 Feb 2021 15:04:01 +0300 Subject: [PATCH] fix 2 warnings in feed editor --- classes/pref/feeds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 5dc0e75e5..0b12bda13 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -996,8 +996,8 @@ class Pref_Feeds extends Handler_Protected { $feed_title = clean($_POST["title"]); $feed_url = clean($_POST["feed_url"]); $site_url = clean($_POST["site_url"]); - $upd_intl = (int) clean($_POST["update_interval"]); - $purge_intl = (int) clean($_POST["purge_interval"]); + $upd_intl = (int) clean($_POST["update_interval"] ?? 0); + $purge_intl = (int) clean($_POST["purge_interval"] ?? 0); $feed_id = (int) clean($_POST["id"] ?? 0); /* editSave */ $feed_ids = explode(",", clean($_POST["ids"] ?? "")); /* batchEditSave */ $cat_id = (int) clean($_POST["cat_id"]);