From 3e069a590733e49c45242a915955b64179106560 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 5 Sep 2013 10:33:23 +0200 Subject: [PATCH] LSformElement_password : fixed mail_attr parameter reading method --- public_html/includes/class/class.LSformElement_password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_password.php b/public_html/includes/class/class.LSformElement_password.php index 489f6f2e..23ac33a6 100644 --- a/public_html/includes/class/class.LSformElement_password.php +++ b/public_html/includes/class/class.LSformElement_password.php @@ -202,7 +202,7 @@ class LSformElement_password extends LSformElement { if ($mail=="") { $mail_attrs = $this -> params['html_options']['mail']['mail_attr']; if (!is_array($mail_attrs)) { - $mail_attrs=array(); + $mail_attrs=array($mail_attrs); } foreach($mail_attrs as $attr) { $mail_attr = $this -> attr_html -> attribute -> ldapObject -> attrs[$attr];