diff --git a/src/Xavrsl/Ldap/Directory.php b/src/Xavrsl/Ldap/Directory.php index add20a9..7917003 100644 --- a/src/Xavrsl/Ldap/Directory.php +++ b/src/Xavrsl/Ldap/Directory.php @@ -448,6 +448,8 @@ protected function output() { if(count($this->results) == 1 && count($this->attributes) == 1) { $attr = $this->attributes[0]; $result = array_shift($this->results); + + if (!array_key_exists($attr, $result)) return false; return $this->format($result[$attr]); }