mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
update function get id_event from meta api
This commit is contained in:
parent
045f115d95
commit
d5a7d75169
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user