diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php
index 8f8ad206a44..6df46eee631 100644
--- a/htdocs/user/param_ihm.php
+++ b/htdocs/user/param_ihm.php
@@ -464,7 +464,7 @@ if ($action == 'edit') {
print '
conf->MAIN_LANDING_PAGE) ? " checked" : "");
print empty($dolibarr_main_demo) ? '' : ' disabled="disabled"'; // Disabled for demo
print '> '.$langs->trans("UsePersonalValue").' | ';
- print '';
+ print ' | ';
if (!empty($object->conf->MAIN_LANDING_PAGE)) {
$urltoshow = '';
if (!empty($tmparray[$object->conf->MAIN_LANDING_PAGE])) {
@@ -476,10 +476,17 @@ if ($action == 'edit') {
} else {
$urltoshow = $object->conf->MAIN_LANDING_PAGE;
}
- print ' ';
- print img_picto($urltoshow, $tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'], 'class="pictofixedwidth"');
+ print '';
+ $s = '';
+ if (!empty($tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'])) {
+ $s = img_picto($urltoshow, $tmparray[$object->conf->MAIN_LANDING_PAGE]['picto'], 'class="pictofixedwidth"');
+ }
+ if (empty($s)) {
+ print img_picto($urltoshow, 'globe', 'class="pictofixedwidth"');
+ } else {
+ print $s;
+ }
print $urltoshow;
- print img_picto($urltoshow, 'globe', 'class="paddingleft"');
print '';
}
print ' | ';