allways add "account_lid" to order of accounts, as groups only have that, also at ASC/DESC sort to each order criteria

This commit is contained in:
Ralf Becker 2014-01-21 17:18:29 +00:00
parent ad04ba821d
commit d20ce47a8d

View File

@ -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;