From 7a29e07ba024279097884845c0c0b4f97dd8b416 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 21 Mar 2013 19:58:34 -0400 Subject: [PATCH] Bug fix: don't save an item if the id is empty --- miniflux/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniflux/model.php b/miniflux/model.php index 36cc729..c03a03a 100644 --- a/miniflux/model.php +++ b/miniflux/model.php @@ -226,7 +226,7 @@ function update_items($feed_id, array $items) foreach ($items as $item) { - if (! $db->table('items')->eq('id', $item->id)->count()) { + if ($item->id && ! $db->table('items')->eq('id', $item->id)->count()) { $db->table('items')->save(array( 'id' => $item->id,