X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update.php;h=521b956ad33b7d60311928690ff0da1716864042;hb=6f61ba46c4a7d61c8e90252897b711573bbb36cc;hp=c1547fa7f7f00033e0f077686a4b39d506918fd4;hpb=878a0083ffc74c7753eec3a1d570af136a80529d;p=tt-rss.git diff --git a/update.php b/update.php index c1547fa7..521b956a 100755 --- a/update.php +++ b/update.php @@ -42,6 +42,13 @@ $options = getopt("", $longopts); + if (!is_array($options)) { + die("error: getopt() failed. ". + "Most probably you are using PHP CGI to run this script ". + "instead of required PHP CLI. Check tt-rss wiki page on updating feeds for ". + "additional information.\n"); + } + if (count($options) == 0 && !defined('STDIN')) { ?>