mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
fix PHP 8.0 TypeError: array_search(): Argument #2 ($haystack) must be of type array, null given
This commit is contained in:
parent
1e8287ab8b
commit
83cb6acca7
@ -557,7 +557,7 @@ class addressbook_zpush implements activesync_plugin_write, activesync_plugin_se
|
||||
|
||||
case 'cat_id':
|
||||
// for existing entries in all-in-one addressbook, remove addressbook name as category
|
||||
if ($contact && $GLOBALS['egw_info']['user']['preferences']['activesync']['addressbook-all-in-one'] &&
|
||||
if ($contact && $GLOBALS['egw_info']['user']['preferences']['activesync']['addressbook-all-in-one'] && is_array($message->$key) &&
|
||||
($k=array_search($this->get_addressbooks($contact['owner'].($contact['private']?'p':''), false, true),$message->$key)))
|
||||
{
|
||||
unset($message->categories[$k]);
|
||||
|
Loading…
Reference in New Issue
Block a user