diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 31758db3e15..83143901148 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -196,7 +196,6 @@ if (empty($reshook)) $object->socialnetworks = array(); if (! empty($conf->socialnetworks->enabled)) { foreach ($socialnetworks as $key => $value) { - if (!$value['active']) break; $object->socialnetworks[$key] = GETPOST($key, 'alphanohtml'); } } @@ -375,7 +374,6 @@ if (empty($reshook)) //$object->linkedin = GETPOST("linkedin", 'alpha'); if (! empty($conf->socialnetworks->enabled)) { foreach ($socialnetworks as $key => $value) { - if (!$value['active']) break; $object->socialnetworks[$key] = GETPOST($key, 'alpha'); } } @@ -693,13 +691,16 @@ else if (! empty($conf->socialnetworks->enabled)) { foreach ($socialnetworks as $key => $value) { - if (!$value['active']) break; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; + if ($value['active']) { + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + } elseif (!empty($object->socialnetworks[$key])) { + print ''; + } } } // if (! empty($conf->socialnetworks->enabled)) @@ -996,13 +997,16 @@ else if (! empty($conf->socialnetworks->enabled)) { foreach ($socialnetworks as $key => $value) { - if (!$value['active']) break; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; + if ($value['active']) { + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + } elseif (!empty($object->socialnetworks[$key])) { + print ''; + } } } // if (! empty($conf->socialnetworks->enabled))