API - Avoid issue with incompatable types by forcing to array, even if no account found

This commit is contained in:
nathangray 2018-03-02 10:21:26 -07:00
parent 63dd5ce96b
commit 9a51ad9211

View File

@ -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)