From 9a51ad9211990f3c63783623a92667b9dbaaf14f Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 2 Mar 2018 10:21:26 -0700 Subject: [PATCH] API - Avoid issue with incompatable types by forcing to array, even if no account found --- api/src/Contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index e00889ee5d..6523438b94 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -1021,7 +1021,7 @@ class Contacts extends Contacts\Storage // invalidate the cache of the accounts class $GLOBALS['egw']->accounts->cache_invalidate($contact['account_id']); // call edit-accout hook, to let other apps know about changed account (names or email) - $GLOBALS['hook_values'] = $GLOBALS['egw']->accounts->read($contact['account_id']); + $GLOBALS['hook_values'] = (array)$GLOBALS['egw']->accounts->read($contact['account_id']); Hooks::process($GLOBALS['hook_values']+array( 'location' => 'editaccount', ),False,True); // called for every app now, not only enabled ones)