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;
/**