From a16d0963f1af1dbfd71538e1365b0b86210eed4e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 16 Jan 2008 20:18:03 +0000 Subject: Conditional checks use ==, not = ! --- etc/inc/auth.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 3cee79b..05d8780 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -71,7 +71,7 @@ function getAllowedGroups($logged_in_user) { $local_user = false; foreach($config['system']['user'] as $username) - if($username['name'] = $logged_in_user) + if($username['name'] == $logged_in_user) $local_user = true; /* return ldap groups if we are in ldap mode */ @@ -778,7 +778,7 @@ function ldap_get_groups($username) { $search = ldap_search($ldap, $ldapsearchbase, $ldapfilter); if(!$search) { - log_error("ERROR! Could not locate User group container for username {}$username}."); + log_error("ERROR! Could not locate User group container for username {$username}."); log_error(" Please ensure that the needed container is defined in the ldap auth containers setting feature."); $status = htpasswd_backed($username, $passwd); return $status; -- cgit v1.1