diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index e2d4aa8f27c..f8fd30b15e3 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5727,6 +5727,7 @@ class Form
else $file=get_exdir(0, 0, 0, 0, $object, 'thirdparty').'/logos/'.$object->logo;
$originalfile=get_exdir(0, 0, 0, 0, $object, 'thirdparty').'/logos/'.$object->logo;
}
+ $email=$object->email;
}
else if ($modulepart=='contact')
{
@@ -5738,6 +5739,7 @@ class Form
else $file=get_exdir(0, 0, 0, 0, $object, 'contact').'/photos/'.$object->photo;
$originalfile=get_exdir(0, 0, 0, 0, $object, 'contact').'/photos/'.$object->photo;
}
+ $email=$object->email;
}
else if ($modulepart=='userphoto')
{