diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php index 7b5a320f678..0bb532e33c4 100644 --- a/htdocs/core/class/vcard.class.php +++ b/htdocs/core/class/vcard.class.php @@ -421,6 +421,9 @@ class vCard if (!empty($object->socialnetworks)) { foreach ($object->socialnetworks as $key => $val) { + if (empty($val)) { // Disacard social network if empty + continue; + } $urlsn = ''; if ($key == 'linkedin') { if (!preg_match('/^http/', $val)) { diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php index c62420c76d8..53bc597aaa9 100644 --- a/htdocs/public/users/view.php +++ b/htdocs/public/users/view.php @@ -262,8 +262,8 @@ if ($showbarcode) { $qrcodecontent = $output = $v->buildVCardString($object, $company, $langs); print '
'; - print '
'; - print ''; + print '
'; + print ''; print '
'; print '
'; }