fix 2 warnings in feed editor

This commit is contained in:
Andrew Dolgov 2021-02-09 15:04:01 +03:00
parent 2f8efab275
commit d630a92c40
1 changed files with 2 additions and 2 deletions

View File

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