From 8fb57aad41baeb234c4c8df8acb398f8b0743b50 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 13 Nov 2025 23:39:37 -0700 Subject: [PATCH] Update functions.php prevent warnings --- resources/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 6f80003e95..9ad26f2e48 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -1972,7 +1972,6 @@ if (!function_exists('send_email')) { $email->attachments = $email_attachments; $email->debug_level = 3; $sent = $email->send(); - $email_error = $email->email_error; return true; } @@ -2615,7 +2614,7 @@ function escape($string) { * @link https://www.php.net/htmlspecialchars */ function escape_textarea($string) { - return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); + return htmlspecialchars($string ?? '', ENT_QUOTES, 'UTF-8'); } //output pre-formatted array keys and values