From 62b94a401a7b7646f40061d53761b999f06028d2 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Wed, 11 Jan 2023 13:55:48 +0100 Subject: Another PHP 8.1 fix for JSmin --- 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 a78363c..aa2aacd 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\$]$/', (string)$c) === 1; + return ord($c ?? '') > 126 || $c === '\\' || preg_match('/^[\w\$]$/', (string)$c) === 1; } protected function min() { -- cgit v1.2.3