diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index bf1c1b3004..f6f522e6f1 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -13156,6 +13156,12 @@ function api_set_create_event($id, $trash1, $other, $returnType) $values['id_extra'] = ''; } + if ($other['data'][21] != '') { + $values['event_custom_id'] = $other['data'][21]; + }else{ + $values['event_custom_id'] = ''; + } + $custom_data = base64_decode($values['custom_data']); $custom_data = mysql_escape_string_sql($custom_data); @@ -13178,7 +13184,7 @@ function api_set_create_event($id, $trash1, $other, $returnType) $values['server_id'], $values['id_extra'], $ack_utimestamp, - $values['event_custom_id'] ?? null + $values['event_custom_id'] ); if ($other['data'][12] != '') {