mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 09:36:09 +08:00
Bugfix: json.after-* hook didn't send $aResponse as recursive array
This commit is contained in:
parent
daf1e2769f
commit
fdc21f26fc
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ class ServiceActions
|
|||
}
|
||||
|
||||
if (\is_array($aResponse)) {
|
||||
// Everything must converted to array
|
||||
$aResponse = \json_decode(Utils::jsonEncode($aResponse), true);
|
||||
$this->Plugins()->RunHook("json.after-{$sAction}", array(&$aResponse));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue