It appears that this statement is returning null. in the merge function in addressbook_bo
parent::search(array(‘id’=>$ids),false)
As a result the function fails I get this error in my log:
[Tue Jan 11 23:09:24 2011] [error] [client 216.121.186.147] PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/system/addressbook/inc/class.addressbook_bo.inc.php on line 1553,
I also ensured $ids has value, it does. It has the 2 id’s in it:
Array
(
[0] => 13116
[1] => 13115
)
parent::search(array(‘id’=>$ids),false) results in:
Invalid SQL: SELECT DISTINCT egw_addressbook.contact_id AS id FROM egw_addressbook LEFT JOIN egw_accounts ON egw_addressbook.account_id=egw_accounts.account_id LEFT JOIN egw_addressbook_extra ON egw_addressbook.contact_id=egw_addressbook_extra.contact_id WHERE contact_tid != ‘D’ AND (egw_addressbook.contact_owner=5 OR contact_private=0 AND egw_addressbook.contact_owner IN (-6,-1,4,2008,5,0) OR egw_addressbook.contact_owner IS NULL) AND (account_expires IS NULL OR account_expires = -1 OR account_expires > 1294805747) AND AND egw_addressbook.contact_id IN (13116,13115):
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND egw_addressbook.contact_id IN (13116,13115)’ at line 1
Click here to resume your eGroupWare Session.