diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php
index ff6af0af7e4..ce2e860fbb0 100644
--- a/htdocs/adherents/fiche.php
+++ b/htdocs/adherents/fiche.php
@@ -1085,7 +1085,7 @@ if ($rowid && $action != 'edit')
// Login
print '
| '.$langs->trans("Login").' | '.$adh->login.' | ';
print '';
- print $html->showphoto('member',$adh);
+ print $html->showphoto('memberphoto',$adh);
print ' | ';
print '
';
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 22f6b2eb412..77c0ea30b20 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -2910,7 +2910,7 @@ class Form
$file=$object->id.".jpg";
$email=$object->email;
}
- if ($modulepart=='member')
+ if ($modulepart=='memberphoto')
{
$dir=$conf->adherent->dir_output;
$file=$object->id.".jpg";