mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added change for metaconsole
This commit is contained in:
parent
1fd19802ac
commit
40569d2092
@ -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 ]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user