fixed mergetool pandora_enterprise#13063

This commit is contained in:
daniel 2024-04-08 12:22:31 +02:00
parent b336b09789
commit 6c4c43daee
3 changed files with 4 additions and 3 deletions

View File

@ -114,6 +114,7 @@ if ($info === 'version') {
exit;
}
$user_in_db = null;
if (empty($apiPassword) === true
|| (empty($apiPassword) === false && $api_password === $apiPassword)
|| $apiTokenValid === true

View File

@ -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.

View File

@ -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'];
}
}