Skip to content

Commit 8a744f5

Browse files
authored
Merge pull request #6 from simonLeary42/patch-3
use empty array when attribute is null
2 parents baadd8d + 1dc153b commit 8a744f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPOpenLDAPer/LDAPEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public function getAttribute($attr)
334334
if (isset($this->object[$attr])) {
335335
return $this->object[$attr];
336336
} else {
337-
return null;
337+
return [];
338338
}
339339
}
340340

0 commit comments

Comments
 (0)