Sort by share_id by default.
authorJan Schneider <jan@horde.org>
Thu, 27 Jan 2011 21:51:37 +0000 (22:51 +0100)
committerJan Schneider <jan@horde.org>
Thu, 27 Jan 2011 22:17:49 +0000 (23:17 +0100)
framework/Share/lib/Horde/Share/Sql.php
framework/Share/lib/Horde/Share/Sqlng.php

index baf9086..8f93a54 100644 (file)
@@ -353,7 +353,7 @@ class Horde_Share_Sql extends Horde_Share_Base
      */
     public function listShares($userid, array $params = array())
     {
-         $params = array_merge(array('perm' => Horde_Perms::SHOW,
+        $params = array_merge(array('perm' => Horde_Perms::SHOW,
                                     'attributes' => null,
                                     'from' => 0,
                                     'count' => 0,
index 94afc33..3aef6e8 100644 (file)
@@ -103,7 +103,7 @@ class Horde_Share_Sqlng extends Horde_Share_Sql
 
         $shares = array();
         if (is_null($params['sort_by'])) {
-            $sortfield = 'share_name';
+            $sortfield = 'share_id';
         } elseif ($params['sort_by'] == 'owner' || $params['sort_by'] == 'id') {
             $sortfield = 'share_' . $params['sort_by'];
         } else {