mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:35:55 +00:00
Address PHPStan warnings in 'classes/rssutils.php'.
This also includes a minor tweak in 'update.php' to account for 'getopt()' potentially returning false (indicating failure).
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
|
||||
$options = getopt("", array_keys($options_map));
|
||||
|
||||
if (count($options) == 0 || isset($options["help"]) ) {
|
||||
if ($options === false || count($options) == 0 || isset($options["help"]) ) {
|
||||
print "Tiny Tiny RSS CLI management tool\n";
|
||||
print "=================================\n";
|
||||
print "Options:\n\n";
|
||||
|
||||
Reference in New Issue
Block a user