Skip to content

Commit

Permalink
Undefined index bug corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
XavRsl committed Sep 19, 2014
1 parent f6f7dfe commit 8c5ecf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xavrsl/Ldap/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ protected function output() {
}
elseif(count($this->results) == 1 && count($this->attributes) > 1) {
$output = array();
$u = $this->results[0];
$u = reset($this->results);
foreach($this->attributes as $a){
$output[$a] = array_key_exists($a, $u) ? $this->format($u[$a]) : null;
}
Expand Down

0 comments on commit 8c5ecf2

Please sign in to comment.