Fixed the event with filter EVENT_CRIT_WARNING_OR_CRITICAL in function 'events_get_events'. TICKET: #1909

This commit is contained in:
mdtrooper 2015-03-12 12:31:15 +01:00
parent 17a1fd38a9
commit acb37f591c
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ function events_get_all_fields() {
* @return mixed False in case of error or invalid values passed. Affected rows otherwise * @return mixed False in case of error or invalid values passed. Affected rows otherwise
*/ */
function events_get_events ($filter = false, $fields = false) { function events_get_events ($filter = false, $fields = false) {
if ($filter['criticity'] == EVENT_CRIT_WARNING_OR_CRITICAL) {
$filter['criticity'] = array(EVENT_CRIT_WARNING, EVENT_CRIT_CRITICAL);
}
return db_get_all_rows_filter ('tevento', $filter, $fields); return db_get_all_rows_filter ('tevento', $filter, $fields);
} }