From d20ce47a8d7e5d45f8de83bb1d1935c3a0d46c10 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 21 Jan 2014 17:18:29 +0000 Subject: [PATCH] allways add "account_lid" to order of accounts, as groups only have that, also at ASC/DESC sort to each order criteria --- phpgwapi/inc/class.accounts_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index e774927020..124b69836e 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -395,7 +395,7 @@ class accounts_sql // allways add 'account_lid', as it is only valid one for groups if (strpos($order, 'account_lid') === false) { - $order .= ',account_lid'; + $order .= ($order?',':'').'account_lid'; } if ($sort) $order = implode(' '.$sort.',', explode(',', $order)).' '.$sort;