From bc848cd41ec3da55f83a1d6676ece873cd21bc6e Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 9 Jan 2023 20:07:47 +0100 Subject: Fix JSMin PHP 8.0+ error --- htdocs/application/libraries/Jsmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/application/libraries/Jsmin.php b/htdocs/application/libraries/Jsmin.php index 620514f..a78363c 100644 --- a/htdocs/application/libraries/Jsmin.php +++ b/htdocs/application/libraries/Jsmin.php @@ -174,7 +174,7 @@ class JSMin { } protected function isAlphaNum($c) { - return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1; + return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', (string)$c) === 1; } protected function min() { -- cgit v1.2.3