LSformElement_password : fixed mail_attr parameter reading method

This commit is contained in:
Benjamin Renard 2013-09-05 10:33:23 +02:00
parent e409e5ee01
commit 3e069a5907

View file

@ -202,7 +202,7 @@ class LSformElement_password extends LSformElement {
if ($mail=="") { if ($mail=="") {
$mail_attrs = $this -> params['html_options']['mail']['mail_attr']; $mail_attrs = $this -> params['html_options']['mail']['mail_attr'];
if (!is_array($mail_attrs)) { if (!is_array($mail_attrs)) {
$mail_attrs=array(); $mail_attrs=array($mail_attrs);
} }
foreach($mail_attrs as $attr) { foreach($mail_attrs as $attr) {
$mail_attr = $this -> attr_html -> attribute -> ldapObject -> attrs[$attr]; $mail_attr = $this -> attr_html -> attribute -> ldapObject -> attrs[$attr];