mirror of
https://github.com/e107inc/e107.git
synced 2025-07-17 04:51:16 +02:00
Fix #4405: PHP 8 compatibility: redirection::checkMembersOnly()
To accommodate the change in behavior of strpos() Fixes: https://github.com/e107inc/e107/issues/4405
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user