mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
replace FALSE with false so that static analyzer shuts up about it
This commit is contained in:
@@ -133,7 +133,7 @@ class Af_Readability extends Plugin {
|
||||
if (!is_array($enabled_feeds)) $enabled_feeds = array();
|
||||
|
||||
$key = array_search($feed_id, $enabled_feeds);
|
||||
$checked = $key !== FALSE ? "checked" : "";
|
||||
$checked = $key !== false ? "checked" : "";
|
||||
|
||||
print "<fieldset>";
|
||||
|
||||
@@ -153,11 +153,11 @@ class Af_Readability extends Plugin {
|
||||
$key = array_search($feed_id, $enabled_feeds);
|
||||
|
||||
if ($enable) {
|
||||
if ($key === FALSE) {
|
||||
if ($key === false) {
|
||||
array_push($enabled_feeds, $feed_id);
|
||||
}
|
||||
} else {
|
||||
if ($key !== FALSE) {
|
||||
if ($key !== false) {
|
||||
unset($enabled_feeds[$key]);
|
||||
}
|
||||
}
|
||||
@@ -250,7 +250,7 @@ class Af_Readability extends Plugin {
|
||||
if (!is_array($enabled_feeds)) return $article;
|
||||
|
||||
$key = array_search($article["feed"]["id"], $enabled_feeds);
|
||||
if ($key === FALSE) return $article;
|
||||
if ($key === false) return $article;
|
||||
|
||||
return $this->process_article($article);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user