mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-14 11:00:52 -04:00
If the album_cover_item_id points to a missing item (unlikely but possible) just treat it like it was missing and continue
This commit is contained in:
@@ -275,7 +275,12 @@ class Item_Model extends ORM_MPTT {
|
||||
return null;
|
||||
}
|
||||
|
||||
return model_cache::get("item", $this->album_cover_item_id);
|
||||
try {
|
||||
return model_cache::get("item", $this->album_cover_item_id);
|
||||
} catch (Exception $e) {
|
||||
// It's possible (unlikely) that the item was deleted, if so keep going.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user