mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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)) {
|
if (\is_array($aResponse)) {
|
||||||
|
// Everything must converted to array
|
||||||
|
$aResponse = \json_decode(Utils::jsonEncode($aResponse), true);
|
||||||
$this->Plugins()->RunHook("json.after-{$sAction}", array(&$aResponse));
|
$this->Plugins()->RunHook("json.after-{$sAction}", array(&$aResponse));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue