FIX fatal error abs on non int
This commit is contained in:
parent
e3f9b15db3
commit
5ba0520195
@ -217,7 +217,13 @@ if (!empty($logosmall) && is_readable($conf->mycompany->dir_output.'/logos/thumb
|
||||
if ($urllogo) {
|
||||
print '<div class="backgreypublicpayment">';
|
||||
print '<div class="logopublicpayment">';
|
||||
if (!empty($mysoc->url)) {
|
||||
print '<a href="'.$mysoc->url.'" target="_blank" rel="noopener">';
|
||||
}
|
||||
print '<img id="dolpaymentlogo" src="'.$urllogo.'">';
|
||||
if (!empty($mysoc->url)) {
|
||||
print '</a>';
|
||||
}
|
||||
print '</div>';
|
||||
if (empty($conf->global->MAIN_HIDE_POWERED_BY)) {
|
||||
print '<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans("PoweredBy").'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.'/theme/dolibarr_logo.svg" width="80px"></a></div>';
|
||||
|
||||
@ -2822,7 +2822,7 @@ class User extends CommonObject
|
||||
$result .= (($option == 'nolink') ? '' : $linkstart);
|
||||
if ($withpictoimg) {
|
||||
$paddafterimage = '';
|
||||
if (abs($withpictoimg) == 1) {
|
||||
if (abs((int) $withpictoimg) == 1) {
|
||||
$paddafterimage = 'style="margin-'.($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right').': 3px;"';
|
||||
}
|
||||
// Only picto
|
||||
|
||||
Loading…
Reference in New Issue
Block a user