X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;h=9b8a7ad66b0e9376cf92c3a9a3fdba7560383630;hb=6f61ba46c4a7d61c8e90252897b711573bbb36cc;hp=e5bc55ee089474dd5696119b2f211c55b7275b5f;hpb=a33558a61efc244ad8c809748e6ee64413e3a217;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index e5bc55ee..9b8a7ad6 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -9,9 +9,9 @@ define('DISABLE_SESSIONS', true); require_once "version.php"; - require_once "config.php"; require_once "autoload.php"; require_once "functions.php"; + require_once "config.php"; require_once "rssfuncs.php"; // defaults @@ -29,6 +29,13 @@ die("error: This script requires PHP compiled with PCNTL module.\n"); } + 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"); + } + $master_handlers_installed = false; $children = array();