From cc2fbee172f213574e38bc15d208e2acda74c267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 1 Feb 2014 15:23:41 -0500 Subject: [PATCH] Ignore items without url --- models/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/item.php b/models/item.php index 47ba66d..66480ae 100644 --- a/models/item.php +++ b/models/item.php @@ -339,7 +339,7 @@ function update_all($feed_id, array $items, $grabber = false) foreach ($items as $item) { // Item parsed correctly? - if ($item->id) { + if ($item->id && $item->url) { // Insert only new item if ($db->table('items')->eq('id', $item->id)->count() !== 1) {