diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index ccbe7f6dd2..640fcca65e 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2137,7 +2137,7 @@ function events_create_event( } $table_events = 'tevento'; - if (defined('METACONSOLE')) { + if (is_metaconsole()) { $table_events = 'tmetaconsole_event'; $sql = sprintf(