diff program/lib/Roundcube/bootstrap.php @ 21:73124dd49283

More cleaning up php8 Warnings/deprecations, noticed that setting non-my-Dates mailboxes to sort on Date isn't sticky over ctrl-R
author Charlie Root
date Thu, 09 Oct 2025 11:31:41 -0400
parents 4681f974d28b
children
line wrap: on
line diff
--- a/program/lib/Roundcube/bootstrap.php	Wed Oct 08 09:42:21 2025 -0400
+++ b/program/lib/Roundcube/bootstrap.php	Thu Oct 09 11:31:41 2025 -0400
@@ -287,7 +287,7 @@
 function asciiwords($str, $css_id = false, $replace_with = '')
 {
     $allowed = 'a-z0-9\_\-' . (!$css_id ? '\.' : '');
-    return preg_replace("/[^$allowed]/i", $replace_with, $str);
+    return preg_replace("/[^$allowed]/i", $replace_with, ($str??''));
 }
 
 /**