From 557d09bb72f7e9848b6fc50ed4e2ba651b89e743 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 10 Apr 2005 18:07:12 +0000 Subject: - added updated coding guidelines - introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users - changed bot code to act on useragent || ip git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/auth/auth_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/auth/auth_ldap.php') diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php index a7c229932b..4a3293648e 100644 --- a/phpBB/includes/auth/auth_ldap.php +++ b/phpBB/includes/auth/auth_ldap.php @@ -39,7 +39,7 @@ function login_ldap(&$username, &$password) $search = @ldap_search($ldap, $config['ldap_base_dn'], $config['ldap_uid'] . '=' . $username, array($config['ldap_uid'])); $result = @ldap_get_entries($ldap, $search); - if (is_array($result) && count($result) > 1) + if (is_array($result) && sizeof($result) > 1) { if (@ldap_bind($ldap, $result[0]['dn'], $password)) { -- cgit v1.2.1