mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
#12513 fixed bug in alert triggered
This commit is contained in:
parent
2576303566
commit
4c475239c9
@ -4039,7 +4039,13 @@ function events_get_response_target(
|
|||||||
if (empty($event['custom_data']) === false) {
|
if (empty($event['custom_data']) === false) {
|
||||||
$custom_data = json_decode($event['custom_data']);
|
$custom_data = json_decode($event['custom_data']);
|
||||||
foreach ($custom_data as $key => $value) {
|
foreach ($custom_data as $key => $value) {
|
||||||
$target = str_replace('_customdata_'.$key.'_', $value, $target);
|
if (is_array($value) === true) {
|
||||||
|
foreach ($value as $k => $v) {
|
||||||
|
$target = str_replace('_customdata_'.$k.'_', $v, $target);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$target = str_replace('_customdata_'.$key.'_', $value, $target);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($target, '_customdata_json_') !== false) {
|
if (strpos($target, '_customdata_json_') !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user