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:
commit
e826a46a87
|
@ -114,6 +114,7 @@ if ($info === 'version') {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user_in_db = null;
|
||||||
if (empty($apiPassword) === true
|
if (empty($apiPassword) === true
|
||||||
|| (empty($apiPassword) === false && $api_password === $apiPassword)
|
|| (empty($apiPassword) === false && $api_password === $apiPassword)
|
||||||
|| $apiTokenValid === true
|
|| $apiTokenValid === true
|
||||||
|
|
|
@ -3137,7 +3137,7 @@ class ConsoleSupervisor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(true);
|
$sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer();
|
||||||
$counts = $sync->getQueues(true);
|
$counts = $sync->getQueues(true);
|
||||||
|
|
||||||
if (count($counts) === 0) {
|
if (count($counts) === 0) {
|
||||||
|
@ -3195,7 +3195,7 @@ class ConsoleSupervisor
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer(true);
|
$sync = new PandoraFMS\Enterprise\Metaconsole\Synchronizer();
|
||||||
$queues = $sync->getQueues();
|
$queues = $sync->getQueues();
|
||||||
if (count($queues) === 0) {
|
if (count($queues) === 0) {
|
||||||
// Clean all.
|
// Clean all.
|
||||||
|
|
|
@ -470,7 +470,7 @@ function get_user_language($id_user=null)
|
||||||
|
|
||||||
if ($id_user !== null) {
|
if ($id_user !== null) {
|
||||||
$userinfo = get_user_info($id_user);
|
$userinfo = get_user_info($id_user);
|
||||||
if ($userinfo['language'] != 'default') {
|
if (isset($userinfo['language']) === true && $userinfo['language'] != 'default') {
|
||||||
return $userinfo['language'];
|
return $userinfo['language'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue