aboutsummaryrefslogtreecommitdiff
path: root/classes/Config.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-23 18:23:49 +0000
committerwn_ <invalid@email.com>2024-11-24 13:59:29 +0000
commit667528d5b927f0f284a067b0e24c9ca7f26c28a4 (patch)
treef28c7ece3584a7852b6562020246b1de6167774e /classes/Config.php
parent53fee911e6a39a5c8504d03d1f114a131d00784c (diff)
Use PHP 8 'str_' functions.
A few more characters in some places, but helps with readability.
Diffstat (limited to 'classes/Config.php')
-rw-r--r--classes/Config.php2
1 files changed, 1 insertions, 1 deletions
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");
}