From 2d7497387cf5e41256c2ff32bdb7dacebd43d8db Mon Sep 17 00:00:00 2001 From: lux Date: Fri, 26 Jan 2024 11:47:46 -0600 Subject: [PATCH] Fix for deprecation warning on strtr() --- lib/vendor/Zend/Mail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vendor/Zend/Mail.php b/lib/vendor/Zend/Mail.php index 556fc632c..4191c1ed6 100644 --- a/lib/vendor/Zend/Mail.php +++ b/lib/vendor/Zend/Mail.php @@ -1213,7 +1213,7 @@ protected function _filterEmail($email) '>' => '', ); - return strtr($email, $rule); + return strtr($email ?? '', $rule); } /** @@ -1232,7 +1232,7 @@ protected function _filterName($name) '>' => ']', ); - return trim(strtr($name, $rule)); + return trim(strtr($name ?? '', $rule)); } /** @@ -1248,7 +1248,7 @@ protected function _filterOther($data) "\t" => '', ); - return strtr($data, $rule); + return strtr($data ?? '', $rule); } /**