mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-03 03:54:25 +02:00
DbQuery: Be less error-prone while calling array_search
This commit is contained in:
parent
6c105b867e
commit
16e54d3987
@ -150,7 +150,7 @@ class DbQuery extends SimpleQuery
|
||||
&& $this->getDatasource()->getDbType() === 'pgsql'
|
||||
&& $select->getPart(Zend_Db_Select::DISTINCT) === true) {
|
||||
foreach ($this->getOrder() as $fieldAndDirection) {
|
||||
if (array_search($fieldAndDirection[0], $this->columns) === false) {
|
||||
if (array_search($fieldAndDirection[0], $this->columns, true) === false) {
|
||||
$this->columns[] = $fieldAndDirection[0];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user