From 9a7a7b41336548309bb015ba8e6ef5ab9ffae595 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 18 Mar 2006 17:16:50 +0100 Subject: [PATCH] set last_error on is_array() iterator check failure --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index f9f024cb..a7e89fc1 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? } -- 2.39.5