Added change for metaconsole

This commit is contained in:
Jose Gonzalez 2020-06-16 08:55:54 +02:00
parent 1fd19802ac
commit 40569d2092

View File

@ -10782,10 +10782,16 @@ function api_set_event($id_event, $unused1, $params, $unused2, $unused3)
} }
} }
if (is_metaconsole() === true) {
$table = 'tmetaconsole_event';
} else {
$table = 'tevento';
}
// TODO. Stablish security for prevent sql injection? // TODO. Stablish security for prevent sql injection?
// Update the row // Update the row
$result = db_process_sql_update( $result = db_process_sql_update(
'tevento', $table,
$paramsSerialize, $paramsSerialize,
[ 'id_evento' => $id_event ] [ 'id_evento' => $id_event ]
); );