From b747921b7e1ad19712f7320c720f9f5a8be6a8a5 Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 17 Mar 2015 18:58:31 +0100 Subject: [PATCH] sso fix --- webui/model/user/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '') {