From 879842ee5bd673a730f5f57524dde35350cbd5eb Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 6 Mar 2013 20:11:34 +0100 Subject: [PATCH] ldap import fix --- webui/model/user/import.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webui/model/user/import.php b/webui/model/user/import.php index b45f0598..072a04da 100644 --- a/webui/model/user/import.php +++ b/webui/model/user/import.php @@ -52,9 +52,7 @@ class ModelUserImport extends Model { for($i = 0; $i < $result[$__mail_attr]['count']; $i++) { LOGGER("found email entry: " . $result['dn'] . " => $__mail_attr:" . $result[$__mail_attr][$i]); - if(preg_match("/^smtp\:/i", $result[$__mail_attr][$i]) || strchr($result[$__mail_attr][$i], '@') ) { - $emails .= strtolower(preg_replace("/^smtp\:/i", "", $result[$__mail_attr][$i])) . "\n"; - } + $emails .= strtolower(preg_replace("/^smtp\:/i", "", $result[$__mail_attr][$i])) . "\n"; } } else {