diff options
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/item.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/helpers/item.php b/core/helpers/item.php index ada8fdf2..c2243fcd 100644 --- a/core/helpers/item.php +++ b/core/helpers/item.php @@ -53,6 +53,10 @@ class item_Core { $parent->thumb_dirty = 1; $parent->save(); graphics::generate($parent); + $grand_parent = $parent->parent(); + if ($grand_parent && $grand_parent->album_cover_item_id == null) { + item::make_album_cover($parent); + } } static function remove_album_cover($album) { |