From 9b781d09a96b2e3df5214d17eb25e89d790a6f76 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 27 Jan 2024 14:15:56 +0100 Subject: [PATCH] Use php 7 str_contains --- admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 74f72afa..3d7fc2a8 100644 --- a/admin/index.php +++ b/admin/index.php @@ -50,7 +50,7 @@ if(!$logged || !admin()) { // include our page $file = __DIR__ . '/pages/' . $page . '.php'; if(!@file_exists($file)) { - if (strpos($page, 'plugins/') !== false) { + if (str_contains($page, 'plugins/')) { $file = BASE . $page; } else {