summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-18 17:16:50 +0100
committerAndrew Dolgov <[email protected]>2006-03-18 17:16:50 +0100
commit9a7a7b41336548309bb015ba8e6ef5ab9ffae595 (patch)
tree7d5bdb7ba9edacfe50b50a0ea5a5ddf05ffd2162 /functions.php
parentc22789da91173a0d176469097a1189ff8e62bb21 (diff)
set last_error on is_array() iterator check failure
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index f9f024cbc..a7e89fc1d 100644
--- a/functions.php
+++ b/functions.php
@@ -305,6 +305,9 @@
if (!$iterator || !is_array($iterator)) $iterator = $rss;
if (!is_array($iterator)) {
+ db_query($link, "UPDATE ttrss_feeds
+ SET last_error = 'CrazyBug 001: Can't find iterator :('
+ WHERE id = '$feed'");
return; // WTF?
}