diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index 4836f98c64..00119668e6 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -114,6 +114,7 @@ if ($info === 'version') { exit; } +$user_in_db = null; if (empty($apiPassword) === true || (empty($apiPassword) === false && $api_password === $apiPassword) || $apiTokenValid === true diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index 76986d41bb..b7c9498973 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -3137,7 +3137,7 @@ class ConsoleSupervisor return; } - $sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(true); + $sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(); $counts = $sync->getQueues(true); if (count($counts) === 0) { @@ -3195,7 +3195,7 @@ class ConsoleSupervisor return; } - $sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(true); + $sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(); $queues = $sync->getQueues(); if (count($queues) === 0) { // Clean all. diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 53e39b7243..c2dc891bcc 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -470,7 +470,7 @@ function get_user_language($id_user=null) if ($id_user !== null) { $userinfo = get_user_info($id_user); - if ($userinfo['language'] != 'default') { + if (isset($userinfo['language']) === true && $userinfo['language'] != 'default') { return $userinfo['language']; } }