1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:35:55 +00:00

general cleanup, set some type hints

This commit is contained in:
Andrew Dolgov
2021-03-06 15:19:31 +03:00
parent 63651bd91d
commit 270f0c3132
4 changed files with 134 additions and 218 deletions

View File

@@ -232,7 +232,7 @@
if (isset($options["update-feed"])) {
try {
if (!RSSUtils::update_rss_feed($options["update-feed"], true))
if (!RSSUtils::update_rss_feed((int)$options["update-feed"], true))
exit(100);
} catch (PDOException $e) {
@@ -454,7 +454,7 @@
}
if (isset($options["debug-feed"])) {
$feed = $options["debug-feed"];
$feed = (int) $options["debug-feed"];
if (isset($options["force-refetch"])) $_REQUEST["force_refetch"] = true;
if (isset($options["force-rehash"])) $_REQUEST["force_rehash"] = true;