From 05f3d86921a3b87c882f3cbd2a30cc4caf4cc797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 29 Sep 2019 11:48:53 +0200 Subject: [PATCH] fix? --- htdocs/societe/class/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 3c79e6ff61a..0d44ced2ff0 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1384,7 +1384,7 @@ class Societe extends CommonObject $arraysocialnetworks['linkedin'] = $obj->linkedin; $updatesocial = true; } - $socialarray = ($obj->socialnetworks==''?array():json_decode($obj->socialnetworks, true)); + $socialarray = (empty($obj->socialnetworks)?array():json_decode($obj->socialnetworks, true)); $this->socialnetworks = array_merge($arraysocialnetworks, $socialarray); if ($updatesocial) { $sqlupd = 'UPDATE '.MAIN_DB_PREFIX.'societe SET skype=null';