Bugfix: json.after-* hook didn't send $aResponse as recursive array

This commit is contained in:
the-djmaze 2023-11-27 17:04:36 +01:00
parent daf1e2769f
commit fdc21f26fc

View file

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