mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Correct event get for metaconsole
This commit is contained in:
parent
370bd8e34f
commit
e3fa68aef6
@ -10740,7 +10740,7 @@ function get_events_with_user($trash1, $trash2, $other, $returnType, $user_in_db
|
|||||||
function api_set_event($id_event, $unused1, $params, $unused2, $unused3)
|
function api_set_event($id_event, $unused1, $params, $unused2, $unused3)
|
||||||
{
|
{
|
||||||
// Get the event
|
// Get the event
|
||||||
$event = events_get_event($id_event);
|
$event = events_get_event($id_event, false, is_metaconsole());
|
||||||
// If event not exists, end the execution.
|
// If event not exists, end the execution.
|
||||||
if ($event === false) {
|
if ($event === false) {
|
||||||
returnError(
|
returnError(
|
||||||
@ -10773,6 +10773,7 @@ function api_set_event($id_event, $unused1, $params, $unused2, $unused3)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// In meta or node.
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
$table = 'tmetaconsole_event';
|
$table = 'tmetaconsole_event';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user