aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-02 22:20:37 -0700
committerzotlabs <mike@macgirvin.com>2017-04-02 22:20:37 -0700
commit26125bcf0b8ce98fa4522f89792d7e77f25ff1ca (patch)
treea41795b80623765cc36ba3dd3bfc5a8f47141e47 /Zotlabs/Widget
parent263efbfe39d36a7133fca82e8e689435255fd9e2 (diff)
downloadvolse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.tar.gz
volse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.tar.bz2
volse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.zip
sql error photos_albums_list with non-logged-in viewer
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Photo_albums.php2
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);