]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
return result codes if DB connection or --debug-feed fails
[tt-rss.git] / update.php
index 2601e965c7731dd856012e4c62cc91a462216e78..23289f1d1fe539c6c285594c871b9e2f84311790 100755 (executable)
 
                $_REQUEST['xdebug'] = 1;
 
-               update_rss_feed($feed);
+               $rc = is_object(update_rss_feed($feed)) ? 0 : 1;
+
+               exit($rc);
        }
 
        if (isset($options["decrypt-feeds"])) {