From a9c2ae3823e804657aff7a1c155a2f39152f4229 Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Sun, 27 Jun 2021 18:02:39 +0200 Subject: [PATCH] Fix #4405: PHP 8 compatibility: redirection::checkMembersOnly() To accommodate the change in behavior of strpos() Fixes: https://github.com/e107inc/e107/issues/4405 --- e107_handlers/redirection_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/redirection_class.php b/e107_handlers/redirection_class.php index eb488504a..865321153 100644 --- a/e107_handlers/redirection_class.php +++ b/e107_handlers/redirection_class.php @@ -280,7 +280,7 @@ class redirection foreach (e107::getPref('membersonly_exceptions') as $val) { $srch = trim($val); - if(strpos(e_SELF, $srch) !== false) + if(!empty($srch) && strpos(e_SELF, $srch) !== false) { return; }