Fix php8.1
This commit is contained in:
parent
8e61f77f4d
commit
b69031e979
@ -1405,7 +1405,7 @@ class Adherent extends CommonObject
|
||||
$this->email = $obj->email;
|
||||
$this->url = $obj->url;
|
||||
|
||||
$this->socialnetworks = (array) json_decode($obj->socialnetworks, true);
|
||||
$this->socialnetworks = ($obj->socialnetworks ? (array) json_decode($obj->socialnetworks, true) : array());
|
||||
|
||||
$this->photo = $obj->photo;
|
||||
$this->statut = $obj->statut;
|
||||
|
||||
@ -1068,7 +1068,7 @@ class Contact extends CommonObject
|
||||
$this->phone_mobile = trim($obj->phone_mobile);
|
||||
|
||||
$this->email = $obj->email;
|
||||
$this->socialnetworks = (array) json_decode($obj->socialnetworks, true);
|
||||
$this->socialnetworks = ($obj->socialnetworks ? (array) json_decode($obj->socialnetworks, true) : array());
|
||||
$this->photo = $obj->photo;
|
||||
$this->priv = $obj->priv;
|
||||
$this->mail = $obj->email;
|
||||
|
||||
@ -1844,7 +1844,7 @@ class Societe extends CommonObject
|
||||
$this->stcomm_picto = $obj->stcomm_picto; // picto statut commercial
|
||||
|
||||
$this->email = $obj->email;
|
||||
$this->socialnetworks = (array) json_decode($obj->socialnetworks, true);
|
||||
$this->socialnetworks = ($obj->socialnetworks ? (array) json_decode($obj->socialnetworks, true) : array());
|
||||
|
||||
$this->url = $obj->url;
|
||||
$this->phone = $obj->phone;
|
||||
|
||||
@ -546,7 +546,7 @@ class User extends CommonObject
|
||||
$this->personal_mobile = $obj->personal_mobile;
|
||||
$this->email = $obj->email;
|
||||
$this->personal_email = $obj->personal_email;
|
||||
$this->socialnetworks = (array) json_decode($obj->socialnetworks, true);
|
||||
$this->socialnetworks = ($obj->socialnetworks ? (array) json_decode($obj->socialnetworks, true) : array());
|
||||
$this->job = $obj->job;
|
||||
$this->signature = $obj->signature;
|
||||
$this->admin = $obj->admin;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user