mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 19:50:44 +01:00
API - Avoid issue with incompatable types by forcing to array, even if no account found
This commit is contained in:
parent
63dd5ce96b
commit
9a51ad9211
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user