mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
gui fix
This commit is contained in:
parent
983de87dfb
commit
cfdb2bcd6c
@ -164,7 +164,7 @@ class ModelUserAuth extends Model {
|
|||||||
foreach (array("mail", "mailalternateaddress", "proxyaddresses", "zimbraMailForwardingAddress", "member", "memberOfGroup") as $mailattr) {
|
foreach (array("mail", "mailalternateaddress", "proxyaddresses", "zimbraMailForwardingAddress", "member", "memberOfGroup") as $mailattr) {
|
||||||
if(isset($a[$mailattr])) {
|
if(isset($a[$mailattr])) {
|
||||||
|
|
||||||
if(isset($a[$mailattr]['count'])) {
|
if(is_array($a[$mailattr])) {
|
||||||
for($i = 0; $i < $a[$mailattr]['count']; $i++) {
|
for($i = 0; $i < $a[$mailattr]['count']; $i++) {
|
||||||
if(preg_match("/^smtp\:/i", $a[$mailattr][$i]) || strchr($a[$mailattr][$i], '@') ) {
|
if(preg_match("/^smtp\:/i", $a[$mailattr][$i]) || strchr($a[$mailattr][$i], '@') ) {
|
||||||
$email = strtolower(preg_replace("/^smtp\:/i", "", $a[$mailattr][$i]));
|
$email = strtolower(preg_replace("/^smtp\:/i", "", $a[$mailattr][$i]));
|
||||||
|
Loading…
Reference in New Issue
Block a user