mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Ldap\Connection: Return false if nothing is found for fetchOne()
This should behave like DbConnection::fetchOne(). refs #8954
This commit is contained in:
parent
6d8c56a12f
commit
9d6d76a26d
@ -143,7 +143,7 @@ class Connection implements Selectable
|
||||
public function fetchOne($query, $fields = array())
|
||||
{
|
||||
$row = (array) $this->fetchRow($query, $fields);
|
||||
return array_shift($row);
|
||||
return array_shift($row) ?: false;
|
||||
}
|
||||
|
||||
public function hasDN($dn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user