From 880dec5a4e6d0acbc3bcab7399c3490f71820c01 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 5 Aug 2015 22:07:51 -0700 Subject: don't throw errors or do the wrong thing if photos have no album (placed on your dav rootdir) --- include/photos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index d36c75b5e..46d4b810c 100644 --- a/include/photos.php +++ b/include/photos.php @@ -355,7 +355,7 @@ function photos_albums_list($channel, $observer) { $ret['albums'] = array(); foreach($albums as $k => $album) { $entry = array( - 'text' => $album['album'], + 'text' => (($album['album']) ? $album['album'] : '/'), 'total' => $album['total'], 'url' => z_root() . '/photos/' . $channel['channel_address'] . '/album/' . bin2hex($album['album']), 'urlencode' => urlencode($album['album']), -- cgit v1.2.3