mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix Feed Collection
This commit is contained in:
@@ -124,7 +124,7 @@ class Feed_Collection implements Feed_CollectionInterface, cache_cacheableInterf
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = 'SELECT id FROM feeds WHERE public = "1" ORDER BY created_on DESC';
|
$sql = 'SELECT * FROM feeds WHERE public = "1" AND base_id = null ORDER BY created_on DESC';
|
||||||
$stmt = $appbox->get_connection()->prepare($sql);
|
$stmt = $appbox->get_connection()->prepare($sql);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
@@ -135,7 +135,7 @@ class Feed_Collection implements Feed_CollectionInterface, cache_cacheableInterf
|
|||||||
foreach ($rs as $row) {
|
foreach ($rs as $row) {
|
||||||
$feeds[] = $row['id'];
|
$feeds[] = $row['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$appbox->set_data_to_cache($feeds, $key);
|
$appbox->set_data_to_cache($feeds, $key);
|
||||||
|
|
||||||
return $feeds;
|
return $feeds;
|
||||||
|
Reference in New Issue
Block a user