summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-03-30 13:23:12 +0200
committerAleksander Machniak <machniak@kolabsys.com>2012-03-30 13:23:12 +0200
commitd319214a23237da051da667fb53d69922c64477e (patch)
treeabe3ee59118e9bd99332f286f1c5b7910f547b78
parentc93bfc52f643eb0c4ab77663a26e86823f597bec (diff)
downloadwebadmin-d319214a23237da051da667fb53d69922c64477e.tar.gz
Fix PHP warning
-rw-r--r--lib/Auth/LDAP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 3c2e96e..af1d7ee 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1122,7 +1122,7 @@ class LDAP
$search_results = ldap_search($this->conn, $root_dn, $search_filter);
- if (ldap_count_entries($this->conn, $search_results) == 0) {
+ if (!$search_result || ldap_count_entries($this->conn, $search_results) == 0) {
//message("No entries found for the user dn in " . __METHOD__);
return false;
}