diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-02 22:20:37 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-04-03 10:55:42 +0200 |
commit | a9bda2b12e3d393fa854e23207a081052e2e7bfd (patch) | |
tree | 2eed3379df931bccd56dd7be8e3a56394fa3e0f9 /Zotlabs | |
parent | 5fb7ea8dbd2d628fffc409c6bc78a76d603b5fcb (diff) | |
download | volse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.tar.gz volse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.tar.bz2 volse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.zip |
sql error photos_albums_list with non-logged-in viewer
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Widget/Photo_albums.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Photo_albums.php b/Zotlabs/Widget/Photo_albums.php index 2a746e492..6df8ddf3c 100644 --- a/Zotlabs/Widget/Photo_albums.php +++ b/Zotlabs/Widget/Photo_albums.php @@ -16,7 +16,7 @@ class Photo_albums { if((! $channelx) || (! perm_is_allowed(\App::$profile['profile_uid'], get_observer_hash(), 'view_storage'))) return ''; - $sortkey = ((array_key_exists('sortkey',$arr)) ? $arr['sortkey'] : 'album'); + $sortkey = ((array_key_exists('sortkey',$arr)) ? $arr['sortkey'] : 'display_path'); $direction = ((array_key_exists('direction',$arr)) ? $arr['direction'] : 'asc'); return photos_album_widget($channelx, \App::get_observer(),$sortkey,$direction); |