mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-9822-14530-Problemas-en-Widgets-de-Dashboard' into 'develop'
minor fix See merge request artica/pandorafms!5273
This commit is contained in:
commit
833032763d
@ -800,7 +800,7 @@ function events_get_all(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($filter['severity']) === true && $filter['severity'] !== '') {
|
if (isset($filter['severity']) === true && $filter['severity'] !== '' && (int) $filter['severity'] > -1) {
|
||||||
if (is_array($filter['severity']) === true) {
|
if (is_array($filter['severity']) === true) {
|
||||||
if (in_array(-1, $filter['severity']) === false) {
|
if (in_array(-1, $filter['severity']) === false) {
|
||||||
$not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']);
|
$not_normal = array_search(EVENT_CRIT_NOT_NORMAL, $filter['severity']);
|
||||||
|
@ -170,7 +170,7 @@ class AlertsFiredWidget extends Widget
|
|||||||
$this->configurationRequired = false;
|
$this->configurationRequired = false;
|
||||||
if (isset($this->values['groupId']) === false) {
|
if (isset($this->values['groupId']) === false) {
|
||||||
$this->configurationRequired = true;
|
$this->configurationRequired = true;
|
||||||
} else {
|
} else if ($this->values['groupId'] !== '0') {
|
||||||
$check_exist = \db_get_value(
|
$check_exist = \db_get_value(
|
||||||
'id_grupo',
|
'id_grupo',
|
||||||
'tgrupo',
|
'tgrupo',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user