diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-05 22:07:51 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-05 22:07:51 -0700 |
commit | 880dec5a4e6d0acbc3bcab7399c3490f71820c01 (patch) | |
tree | 5a7f37de49e6f5d5ddb87c3d7387fb8d109876e1 /include/photos.php | |
parent | dfb8a1b2d410eb27a647b967d857207162fa6540 (diff) | |
download | volse-hubzilla-880dec5a4e6d0acbc3bcab7399c3490f71820c01.tar.gz volse-hubzilla-880dec5a4e6d0acbc3bcab7399c3490f71820c01.tar.bz2 volse-hubzilla-880dec5a4e6d0acbc3bcab7399c3490f71820c01.zip |
don't throw errors or do the wrong thing if photos have no album (placed on your dav rootdir)
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
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']), |