Fix style
This commit is contained in:
parent
6b1ce7c050
commit
1f28590e5e
@ -817,10 +817,12 @@ abstract class CommonObject
|
|||||||
|
|
||||||
if (is_array($this->socialnetworks) && count($this->socialnetworks) > 0) {
|
if (is_array($this->socialnetworks) && count($this->socialnetworks) > 0) {
|
||||||
foreach ($this->socialnetworks as $key => $value) {
|
foreach ($this->socialnetworks as $key => $value) {
|
||||||
$outsocialnetwork .= dol_print_socialnetworks($value, $this->id, $object->id, $key);
|
if ($value) {
|
||||||
|
$outsocialnetwork .= dol_print_socialnetworks($value, $this->id, $object->id, $key);
|
||||||
|
}
|
||||||
$outdone++;
|
$outdone++;
|
||||||
}
|
}
|
||||||
} else {
|
} else { // Old code
|
||||||
if ($this->skype) $outsocialnetwork .= dol_print_socialnetworks($this->skype, $this->id, $object->id, 'skype');
|
if ($this->skype) $outsocialnetwork .= dol_print_socialnetworks($this->skype, $this->id, $object->id, 'skype');
|
||||||
$outdone++;
|
$outdone++;
|
||||||
if ($this->jabberid) $outsocialnetwork .= dol_print_socialnetworks($this->jabberid, $this->id, $object->id, 'jabber');
|
if ($this->jabberid) $outsocialnetwork .= dol_print_socialnetworks($this->jabberid, $this->id, $object->id, 'jabber');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user