Fixes #863 Allow delete representative for empty albums

This commit is contained in:
Teatek
2019-02-01 16:35:49 +01:00
committed by Pierrick Le Gall
parent 64819ae2a0
commit 743d31c9e0
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ if ($category['has_images'] or !empty($category['representative_picture_id']))
}
// can the admin choose to set a new random representant ?
$tpl_representant['ALLOW_SET_RANDOM'] = ($category['has_images']) ? true : false;
$tpl_representant['ALLOW_SET_RANDOM'] = ($category['has_images'] ? true : false);
// can the admin delete the current representant ?
if (