diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-11 18:13:19 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-11 18:13:19 +0000 |
| commit | 010c355ecfb40263c81cd3f47e5bfc35f2d3bd62 (patch) | |
| tree | 85acfa7d1614e97dd1b2eb8499cba93320bd8ecd /core/helpers/item.php | |
| parent | 74b89379633a92b538a647c89131ee3b645bfcf6 (diff) | |
Fix for #226
Diffstat (limited to 'core/helpers/item.php')
| -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) { |
