From d5a7d751699b7300a986dc25aba78a2f2dcc9bcb Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 13 Apr 2020 11:00:11 +0200 Subject: [PATCH] update function get id_event from meta api --- pandora_console/include/functions_api.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index c0e671e8d1..8eadcdb624 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -16012,10 +16012,9 @@ function api_get_event_mcid($server_id, $console_event_id, $trash2, $returnType) if (is_metaconsole()) { $mc_event_id = db_get_all_rows_sql("SELECT id_evento FROM tmetaconsole_event WHERE id_source_event = $console_event_id AND server_id = $server_id "); if ($mc_event_id !== false) { - $query = "SELECT id_evento FROM tmetaconsole_event WHERE id_source_event = $console_event_id AND server_id = $server_id "; returnData($returnType, ['type' => 'string', 'data' => $mc_event_id]); } else { - returnError('id_not_found', $console_event_id.' on '.$server_id); + returnError('id_not_found', 'string'); } } else { returnError('forbidden', 'string');