From 55bcda6071b77cb319dc3e8b737d179bbb146b2c Mon Sep 17 00:00:00 2001 From: Paladox Date: Fri, 15 Dec 2023 22:39:17 +0000 Subject: [PATCH] Fix "PHP Deprecated: preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated" Change-Id: Ic5eff58389a66f56bd2a9585c476dcde5a93f4d1 (cherry picked from commit f1feb6c456888308b86cd8e0538d7ddbc44eb0b1) --- includes/Pager/AbuseLogPager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Pager/AbuseLogPager.php b/includes/Pager/AbuseLogPager.php index 157f2f234..06dbba48f 100644 --- a/includes/Pager/AbuseLogPager.php +++ b/includes/Pager/AbuseLogPager.php @@ -188,7 +188,7 @@ class AbuseLogPager extends ReverseChronologicalPager { } } else { $escaped_comments = Sanitizer::escapeHtmlAllowEntities( - $row->af_public_comments ); + $row->af_public_comments ?? '' ); $filter_hidden = $row->af_hidden; }