summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib/album.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/lib/album.php')
-rw-r--r--apps/gallery/lib/album.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php
index 070afdd6cd6..ef361a37913 100644
--- a/apps/gallery/lib/album.php
+++ b/apps/gallery/lib/album.php
@@ -79,7 +79,7 @@ class OC_Gallery_Album {
$sql .= ' AND parent_path = ?';
$args[] = $parent;
}
- $order = OC_Preferences::getValue(OC_User::getUser(), 'gallery', 'order', 'ASC');
+ $order = OC_Preferences::getValue($owner, 'gallery', 'order', 'ASC');
$sql .= ' ORDER BY album_name ' . $order;
$stmt = OC_DB::prepare($sql);