Merge branch 'ent-13063-bug-merging-tool-al-cambiar-orden-de-prioridad' into 'develop'

fixed mergetool pandora_enterprise#13063

See merge request artica/pandorafms!7147
This commit is contained in:
Rafael Ameijeiras 2024-04-09 13:48:17 +00:00
commit e826a46a87
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'];
}
}