mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-07 21:05:18 +02:00
Merge branch 'master' into feature/user-and-group-management-8826
This commit is contained in:
commit
aa466ae721
@ -7,6 +7,7 @@ use Zend_Paginator;
|
||||
use Icinga\Web\Controller\ModuleActionController;
|
||||
use Icinga\Web\Widget\SortBox;
|
||||
use Icinga\Web\Widget\Limiter;
|
||||
use Icinga\Data\Sortable;
|
||||
|
||||
/**
|
||||
* This is the controller all modules should inherit from
|
||||
|
@ -370,7 +370,11 @@ abstract class IdoQuery extends DbQuery
|
||||
if ($count > 0) {
|
||||
$this->columnsWithoutCollation[] = $this->getMappedField($key);
|
||||
}
|
||||
$value = preg_replace('/inet_aton\(([[:word:].]+)\)/i', '$1::inet - \'0.0.0.0\'', $value);
|
||||
$value = preg_replace(
|
||||
'/inet_aton\(([[:word:].]+)\)/i',
|
||||
'(CASE WHEN $1 ~ \'(?:[0-9]{1,3}\\\\.){3}[0-9]{1,3}\' THEN $1::inet - \'0.0.0.0\' ELSE NULL END)',
|
||||
$value
|
||||
);
|
||||
$value = preg_replace(
|
||||
'/UNIX_TIMESTAMP(\((?>[^()]|(?-1))*\))/i',
|
||||
'CASE WHEN ($1 < \'1970-01-03 00:00:00+00\'::timestamp with time zone) THEN 0 ELSE UNIX_TIMESTAMP($1) END',
|
||||
|
@ -83,7 +83,7 @@ class PerfdataSet implements IteratorAggregate
|
||||
$label = trim($this->readLabel());
|
||||
$value = trim($this->readUntil(' '));
|
||||
|
||||
if ($label && $value) {
|
||||
if ($label) {
|
||||
$this->perfdata[] = new Perfdata($label, $value);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user