]> git.mxchange.org Git - friendica.git/commitdiff
Fix order parameter for dba::select
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 10 Dec 2017 10:37:23 +0000 (05:37 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 10 Dec 2017 10:37:23 +0000 (05:37 -0500)
src/Model/Group.php

index 7d2e8f4898f07f1aea58752f7793af5e660586e5..4431bdc88aad2a1f535aa23aa7580fb4ca1ecb1d 100644 (file)
@@ -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) {