]> git.wh0rd.org Git - tt-rss.git/commitdiff
set last_error on is_array() iterator check failure
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 18 Mar 2006 16:16:50 +0000 (17:16 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 18 Mar 2006 16:16:50 +0000 (17:16 +0100)
functions.php

index f9f024cbcc34d579cddfb3a5fe039432d5b12ca8..a7e89fc1d34bcb2870ecc42452ccba53175a7aff 100644 (file)
                        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?
                        }