diff --git a/webui/model/user/auth.php b/webui/model/user/auth.php index ba74e8ec..66fa0692 100644 --- a/webui/model/user/auth.php +++ b/webui/model/user/auth.php @@ -429,7 +429,7 @@ class ModelUserAuth extends Model { if(isset($query->row['dn'])) { $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)); if($username == '') {