Fixing style errors.

This commit is contained in:
stickler-ci 2021-03-04 09:36:17 +00:00
parent e94f703f5d
commit 47dd477c61
2 changed files with 5 additions and 5 deletions

View File

@ -1471,7 +1471,7 @@ class Contact extends CommonObject
if ($withpicto) { if ($withpicto) {
if ($withpicto == -2) { if ($withpicto == -2) {
$result .= '<!-- picto photo user --><span class="nopadding userimg'.($moreparam ? ' '.$moreparam : '').'">'.Form::showphoto('contact', $this, 0, 0, 0, 'userphoto'.($withpicto == -3 ? 'small' : ''), 'mini', 0, 1).'</span>'; $result .= '<!-- picto photo user --><span class="nopadding userimg'.($moreparam ? ' '.$moreparam : '').'">'.Form::showphoto('contact', $this, 0, 0, 0, 'userphoto'.($withpicto == -3 ? 'small' : ''), 'mini', 0, 1).'</span>';
}else { } else {
$result .= img_object(($notooltip ? '' : $label), ( $this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1); $result .= img_object(($notooltip ? '' : $label), ( $this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
} }
} }

View File

@ -843,12 +843,12 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
$c = new Contact($db); $c = new Contact($db);
} }
$c->fetch($contacttask['id']); $c->fetch($contacttask['id']);
if(!empty($c->photo)){ if (!empty($c->photo)) {
print $c->getNomUrl(-2).'&nbsp;'; print $c->getNomUrl(-2).'&nbsp;';
}else { } else {
if (get_class($c) == 'User') { if (get_class($c) == 'User') {
print $c->getNomUrl(2,'',0,0,24,1);//.'&nbsp;'; print $c->getNomUrl(2, '', 0, 0, 24, 1);//.'&nbsp;';
}else { } else {
print $c->getNomUrl(2);//.'&nbsp;'; print $c->getNomUrl(2);//.'&nbsp;';
} }
} }