Skip to content

Commit 7e2c291

Browse files
authored
Update myobject.class.php
1 parent 86f0d6d commit 7e2c291

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

htdocs/modulebuilder/template/class/myobject.class.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,12 @@ public function getNomUrl($withpicto = 0, $option = '', $notooltip = 0, $morecss
563563
$pospoint = strpos($filearray[0]['name'], '.');
564564

565565
$pathtophoto = $class . '/' . $this->ref . '/thumbs/' . substr($filename, 0, $pospoint) . '_mini' . substr($filename, $pospoint);
566-
if(empty($conf->global->{strtoupper($module.'_'.$class).'_FORMATLISTPHOTOSASUSERS'}))
566+
if (empty($conf->global->{strtoupper($module.'_'.$class).'_FORMATLISTPHOTOSASUSERS'})) {
567567
$result .= '<div class="floatleft inline-block valignmiddle divphotoref"><div class="photoref"><img class="photo' . $module . '" alt="No photo" border="0" src="' . DOL_URL_ROOT . '/viewimage.php?modulepart=' . $module . '&entity=' . $conf->entity . '&file=' . urlencode($pathtophoto) . '"></div></div>';
568-
else $result .= '<div class="floatleft inline-block valignmiddle divphotoref"><img class="photouserphoto userphoto" alt="No photo" border="0" src="' . DOL_URL_ROOT . '/viewimage.php?modulepart=' . $module . '&entity=' . $conf->entity . '&file=' . urlencode($pathtophoto) . '"></div>';
569-
568+
}
569+
else {
570+
$result .= '<div class="floatleft inline-block valignmiddle divphotoref"><img class="photouserphoto userphoto" alt="No photo" border="0" src="' . DOL_URL_ROOT . '/viewimage.php?modulepart=' . $module . '&entity=' . $conf->entity . '&file=' . urlencode($pathtophoto) . '"></div>';
571+
}
570572

571573
$result .= '</div>';
572574
}

0 commit comments

Comments
 (0)