diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index c8725c4d248..eafaa24ac30 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -231,11 +231,11 @@ $title=''; // Show logo (search in order: small company logo, large company logo, theme logo, common logo) $width=0; $urllogo=DOL_URL_ROOT.'/theme/login_logo.png'; -if (is_readable($conf->societe->dir_output.'/logos/thumbs/'.$mysoc->logo_small)) +if (isset($mysoc->logo_small) && is_readable($conf->societe->dir_output.'/logos/thumbs/'.$mysoc->logo_small)) { $urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=companylogo&file='.urlencode('/thumbs/'.$mysoc->logo_small); } -elseif (is_readable($conf->societe->dir_output.'/logos/'.$mysoc->logo)) +elseif (isset($mysoc->logo) && is_readable($conf->societe->dir_output.'/logos/'.$mysoc->logo)) { $urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=companylogo&file='.urlencode($mysoc->logo); $width=96;