was meant to strpos

This commit is contained in:
Christian Haschek
2022-02-19 10:53:26 +01:00
parent cf0effd0e8
commit a145ca88cc

View File

@@ -602,7 +602,7 @@ function deleteHash($hash)
*/
function isIPInRange( $ip, $range ) {
if(substr(',',$range)!==false)
if(strpos($range,',')!==false)
{
// we got a list of ranges. splitting
$ranges = array_map('trim',explode(',',$range));