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…
Reference in New Issue