From b0fb398844adacecdb0ffb6eb3ac338a89fc13f1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 10 Dec 2017 05:37:23 -0500 Subject: [PATCH] Fix order parameter for dba::select --- src/Model/Group.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Group.php b/src/Model/Group.php index 7d2e8f4898..4431bdc88a 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -312,7 +312,7 @@ class Group extends BaseObject { $o = ''; - $stmt = dba::select('group', [], ['deleted' => 0, 'uid' => $uid], ['order' => ['name' => 'ASC']]); + $stmt = dba::select('group', [], ['deleted' => 0, 'uid' => $uid], ['order' => ['name']]); $display_groups = [ [ @@ -371,7 +371,7 @@ class Group extends BaseObject ] ]; - $stmt = dba::select('group', [], ['deleted' => 0, 'uid' => local_user()], ['order' => ['name' => 'ASC']]); + $stmt = dba::select('group', [], ['deleted' => 0, 'uid' => local_user()], ['order' => ['name']]); $member_of = array(); if ($cid) { -- 2.39.5