From: Hypolite Petovan Date: Sun, 10 Dec 2017 10:37:23 +0000 (-0500) Subject: Fix order parameter for dba::select X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0fb398844adacecdb0ffb6eb3ac338a89fc13f1;p=friendica.git Fix order parameter for dba::select --- 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) {