From 667528d5b927f0f284a067b0e24c9ca7f26c28a4 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 23 Nov 2024 18:23:49 +0000 Subject: Use PHP 8 'str_' functions. A few more characters in some places, but helps with readability. --- classes/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/Config.php') diff --git a/classes/Config.php b/classes/Config.php index 4775faf71..e22808faa 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -510,7 +510,7 @@ class Config { $errors = []; - if (strpos(self::get(Config::PLUGINS), "auth_") === false) { + if (!str_contains(self::get(Config::PLUGINS), "auth_")) { array_push($errors, "Please enable at least one authentication module via PLUGINS"); } -- cgit v1.2.3-54-g00ecf