From 17358bb6e4cde7ab8eb71b17efffc6bea5e9c34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20France?= Date: Sat, 1 Mar 2025 16:35:22 +0100 Subject: [PATCH] fix phan --- htdocs/admin/clicktodial.php | 2 +- htdocs/contact/class/contact.class.php | 2 +- htdocs/webportal/class/webportalmember.class.php | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/htdocs/admin/clicktodial.php b/htdocs/admin/clicktodial.php index 1d1b6224841..f76c9a71b9e 100644 --- a/htdocs/admin/clicktodial.php +++ b/htdocs/admin/clicktodial.php @@ -167,7 +167,7 @@ print '

'; if (getDolGlobalString('CLICKTODIAL_URL')) { $user->fetch_clicktodial(); - $phonefortest = $mysoc->phone; + $phonefortest = $mysoc->phone ?? ''; if (GETPOST('phonefortest')) { $phonefortest = GETPOST('phonefortest'); } diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index e4ec65a5ac3..2a726981ab8 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -623,7 +623,7 @@ class Contact extends CommonObject $this->name_alias = trim($this->name_alias); $this->lastname = trim($this->lastname) ? trim($this->lastname) : trim($this->lastname); $this->firstname = trim($this->firstname); - $this->email = trim($this->email); + $this->email = trim($this->email ?? ''); $this->phone_pro = trim($this->phone_pro); $this->phone_perso = trim($this->phone_perso); $this->phone_mobile = trim($this->phone_mobile); diff --git a/htdocs/webportal/class/webportalmember.class.php b/htdocs/webportal/class/webportalmember.class.php index e44a633319a..03ee6a42762 100644 --- a/htdocs/webportal/class/webportalmember.class.php +++ b/htdocs/webportal/class/webportalmember.class.php @@ -2,7 +2,7 @@ /* Copyright (C) 2023-2024 Laurent Destailleur * Copyright (C) 2023-2024 Lionel Vessiller * Copyright (C) 2024 MDW - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -158,8 +158,6 @@ class WebPortalMember extends Adherent //public $phone; //public $phone_perso; //public $phone_mobile; - //public $email; - //public $url; //public $socialnetworks; //public $login; /**