mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01: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:
parent
3430342d0d
commit
a9c2ae3823
@ -280,7 +280,7 @@ class redirection
|
|||||||
foreach (e107::getPref('membersonly_exceptions') as $val)
|
foreach (e107::getPref('membersonly_exceptions') as $val)
|
||||||
{
|
{
|
||||||
$srch = trim($val);
|
$srch = trim($val);
|
||||||
if(strpos(e_SELF, $srch) !== false)
|
if(!empty($srch) && strpos(e_SELF, $srch) !== false)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user