diff --git a/templates/AlbumIndex.php b/templates/AlbumIndex.php index 4307fb77..1e477ab8 100644 --- a/templates/AlbumIndex.php +++ b/templates/AlbumIndex.php @@ -35,8 +35,12 @@ class AlbumIndex extends SubTemplate foreach ($photos as $album) { + $color = isset($album['thumbnail']) ? $album['thumbnail']->bestColor() : 'ccc'; + if ($color == 'FFFFFF') + $color = 'ccc'; + echo ' -