Hide thumbnail selection when none available
This commit is contained in:
parent
167a50cb92
commit
310fe7c3d6
@ -132,6 +132,7 @@ class EditAlbum extends HTMLController
|
||||
'id_tag' => $id_tag,
|
||||
], true);
|
||||
|
||||
if ($num_assets > 0)
|
||||
$this->page->adopt(new FeaturedThumbnailManager($assets, $id_tag ? $album->id_asset_thumb : 0));
|
||||
}
|
||||
|
||||
|
@ -123,6 +123,7 @@ class EditTag extends HTMLController
|
||||
'id_tag' => $id_tag,
|
||||
], true);
|
||||
|
||||
if ($num_assets > 0)
|
||||
$this->page->adopt(new FeaturedThumbnailManager($assets, $id_tag ? $tag->id_asset_thumb : 0));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user