Skip to content

Commit

Permalink
Merge pull request #68 from Abdul-Majid10/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
slackerzz authored Feb 12, 2023
2 parents ab857a4 + 3fa6fee commit 2b60b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function isIpMatched($ip, array $ranges)
*/
public function getAllowedRanges()
{
$ranges = $this->scopeConfig->getValue(self::XML_PATH_GENERAL_AUTHORIZED_IPS);
$ranges = $this->scopeConfig->getValue(self::XML_PATH_GENERAL_AUTHORIZED_IPS) ?? "";
return preg_split('/\s*[,;]+\s*/', $ranges);
}

Expand Down

0 comments on commit 2b60b30

Please sign in to comment.