From 80e500591f45193d12a08cadf0c7e1495faf9efe Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 15 Jul 2022 11:44:58 +0200 Subject: [PATCH] Avoid deprecation in PHP 8.1 --- model/AliasHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/AliasHandler.php b/model/AliasHandler.php index fc251d92..b24b71d5 100644 --- a/model/AliasHandler.php +++ b/model/AliasHandler.php @@ -470,7 +470,7 @@ class AliasHandler extends PFAHandler */ protected function getVacationAlias() { - $vacation_goto = str_replace('@', '#', $this->id); + $vacation_goto = str_replace('@', '#', $this->id ?? ''); return $vacation_goto . '@' . Config::read_string('vacation_domain'); }