From 010c355ecfb40263c81cd3f47e5bfc35f2d3bd62 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 11 May 2009 18:13:19 +0000 Subject: Fix for #226 --- core/helpers/item.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/helpers') 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) { -- cgit v1.2.3