Ignore items without url
This commit is contained in:
parent
a843312fff
commit
cc2fbee172
@ -339,7 +339,7 @@ function update_all($feed_id, array $items, $grabber = false)
|
|||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
|
|
||||||
// Item parsed correctly?
|
// Item parsed correctly?
|
||||||
if ($item->id) {
|
if ($item->id && $item->url) {
|
||||||
|
|
||||||
// Insert only new item
|
// Insert only new item
|
||||||
if ($db->table('items')->eq('id', $item->id)->count() !== 1) {
|
if ($db->table('items')->eq('id', $item->id)->count() !== 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user