Permalink
Browse files

some fix: 'h4cc: Added array initializations in LdapUser' and 'lucasc…

…ourot: Fix ldap_free_result function's parameter'
  • Loading branch information...
mdesign83 committed Sep 18, 2013
1 parent 6988bd6 commit 9e9393a2511b4d71ee70b118326207c129d0170f
Showing with 3 additions and 3 deletions.
  1. +1 −1 Manager/LdapConnection.php
  2. +2 −2 User/LdapUser.php
@@ -51,7 +51,7 @@ public function search(array $params)
if ($search) {
$entries = ldap_get_entries(self::$ress, $search);
- @ldap_free_result(self::$ress);
+ @ldap_free_result($search);
return is_array($entries) ? $entries : false;
}
View
@@ -8,9 +8,9 @@ class LdapUser implements LdapUserInterface
{
protected $username,
$email,
- $roles,
+ $roles = array(),
$dn,
- $attributes
+ $attributes = array()
;
public function getRoles()

0 comments on commit 9e9393a

Please sign in to comment.