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];