LSformElement_password : fixed mail_attr parameter reading method
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 5 Sep 2013 08:33:23 +0000 (10:33 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 5 Sep 2013 08:33:23 +0000 (10:33 +0200)
public_html/includes/class/class.LSformElement_password.php

index 489f6f2..23ac33a 100644 (file)
@@ -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];