summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-25 13:39:01 +0300
committerAndrew Dolgov <[email protected]>2017-04-25 13:39:01 +0300
commit3c111597768a13ae05463b044f6e4d6dc18d8be0 (patch)
treed1d79b95c22501bf1e996dee8d39ec3a0ce149cd /update.php
parentedb56571f281c3377d5cabb2e5e49dcebd0e6036 (diff)
return result codes if DB connection or --debug-feed fails
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/update.php b/update.php
index 2601e965c..23289f1d1 100755
--- a/update.php
+++ b/update.php
@@ -401,7 +401,9 @@
$_REQUEST['xdebug'] = 1;
- update_rss_feed($feed);
+ $rc = is_object(update_rss_feed($feed)) ? 0 : 1;
+
+ exit($rc);
}
if (isset($options["decrypt-feeds"])) {