Added change for metaconsole

This commit is contained in:
Jose Gonzalez 2020-06-16 08:55:54 +02:00
parent 1fd19802ac
commit 40569d2092
1 changed files with 7 additions and 1 deletions

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?
// Update the row
$result = db_process_sql_update(
'tevento',
$table,
$paramsSerialize,
[ 'id_evento' => $id_event ]
);