Fix #14027 : emptying social network value on contact wasn't working

This commit is contained in:
Maxime Kohlhaas 2020-06-04 00:30:17 +02:00
parent f91e7e4917
commit f6e0ed08e2

View File

@ -403,6 +403,7 @@ if (empty($reshook))
//$object->twitter = GETPOST("twitter", 'alpha');
//$object->facebook = GETPOST("facebook", 'alpha');
//$object->linkedin = GETPOST("linkedin", 'alpha');
$object->socialnetworks = array();
if (!empty($conf->socialnetworks->enabled)) {
foreach ($socialnetworks as $key => $value) {
if (GETPOSTISSET($key) && GETPOST($key, 'alphanohtml') != '') {