Fix: SQL syntax

This commit is contained in:
Laurent Destailleur 2011-02-12 22:34:37 +00:00
parent f7ca6e4d4b
commit d4be09c324

View File

@ -146,7 +146,7 @@ class User extends CommonObject
if ($sid)
{
$sql.= " AND (u.ldap_sid = '".$sid."' || u.login = '".$this->db->escape($login)."') LIMIT 1";
$sql.= " AND (u.ldap_sid = '".$sid."' OR u.login = '".$this->db->escape($login)."') LIMIT 1";
}
else if ($login)
// permet une recherche du user par son SID ActiveDirectory ou Samba