From cedad3dc269e10b26880374a17faf7fadeff2d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 29 Sep 2019 11:56:53 +0200 Subject: [PATCH] fix? fix? 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 0d44ced2ff0..6a15de6e97a 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 = (empty($obj->socialnetworks)?array():json_decode($obj->socialnetworks, true)); + $socialarray = ((is_null($obj->socialnetworks) || $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';