Fixing style errors.
This commit is contained in:
parent
e94f703f5d
commit
47dd477c61
@ -1471,7 +1471,7 @@ class Contact extends CommonObject
|
||||
if ($withpicto) {
|
||||
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>';
|
||||
}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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -843,12 +843,12 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
||||
$c = new Contact($db);
|
||||
}
|
||||
$c->fetch($contacttask['id']);
|
||||
if(!empty($c->photo)){
|
||||
if (!empty($c->photo)) {
|
||||
print $c->getNomUrl(-2).' ';
|
||||
}else {
|
||||
} else {
|
||||
if (get_class($c) == 'User') {
|
||||
print $c->getNomUrl(2,'',0,0,24,1);//.' ';
|
||||
}else {
|
||||
print $c->getNomUrl(2, '', 0, 0, 24, 1);//.' ';
|
||||
} else {
|
||||
print $c->getNomUrl(2);//.' ';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user