mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
fix for postgres
This commit is contained in:
parent
ad747da115
commit
39cbdbc2c6
@ -1654,12 +1654,12 @@ class calendar_bo
|
|||||||
'bday' => "!''",
|
'bday' => "!''",
|
||||||
);
|
);
|
||||||
$bdays =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
$bdays =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
||||||
'contact_bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter);
|
'bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter);
|
||||||
// search accounts too, if not stored in contacts repository
|
// search accounts too, if not stored in contacts repository
|
||||||
$extra_accounts_search = $contacts->account_repository == 'ldap' && !is_null($contacts->so_accounts) &&
|
$extra_accounts_search = $contacts->account_repository == 'ldap' && !is_null($contacts->so_accounts) &&
|
||||||
!$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'];
|
!$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'];
|
||||||
if ($extra_accounts_search && ($bdays2 =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
if ($extra_accounts_search && ($bdays2 =& $contacts->search('',array('id','n_family','n_given','n_prefix','n_middle','bday'),
|
||||||
'contact_bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter+array('owner' => 0))))
|
'bday ASC',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter+array('owner' => 0))))
|
||||||
{
|
{
|
||||||
$bdays = !$bdays ? $bdays2 : array_merge($bdays,$bdays2);
|
$bdays = !$bdays ? $bdays2 : array_merge($bdays,$bdays2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user