diff --git a/templates/AlbumIndex.php b/templates/AlbumIndex.php index 4307fb7..1e477ab 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 ' -