diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index dbfd978233..bd7df846da 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -468,6 +468,11 @@ class addressbook_sql extends so_sql_cf */ function get_lists($uids,$uid_column='list_owner',$member_attr=null,$limit_in_ab=false) { + if (isset($uids['list_id'])) + { + $uids[$this->lists_table.'.list_id'] = $uids['list_id']; + unset($uids['list_id']); + } $lists = array(); foreach($this->db->select($this->lists_table,'*',$uid_column?array($uid_column=>$uids):$uids,__LINE__,__FILE__, false,'ORDER BY list_owner<>'.(int)$GLOBALS['egw_info']['user']['account_id'].',list_name') as $row)