From 93125e7841d180b820103dffbb82bff8cbdbca3c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Mar 2023 18:11:24 +0200 Subject: [PATCH] Debug v18 --- htdocs/core/class/vcard.class.php | 3 +++ htdocs/public/users/view.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 '
'; }