This commit is contained in:
SJ 2015-03-17 18:58:31 +01:00
parent 30f5aafc32
commit b747921b7e

View File

@ -429,7 +429,7 @@ class ModelUserAuth extends Model {
if(isset($query->row['dn'])) { if(isset($query->row['dn'])) {
$a = $query->row; $a = $query->row;
if(isset($a['mail']['count'])) { $username = $a['mail'][0]; } else { $username = $a['mail']; } if(is_array($a['mail'])) { $username = $a['mail'][0]; } else { $username = $a['mail']; }
$username = strtolower(preg_replace("/^smtp\:/i", "", $username)); $username = strtolower(preg_replace("/^smtp\:/i", "", $username));
if($username == '') { if($username == '') {