mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-18 17:15:05 +00:00
Rename cidr variable to cidr_value
This commit is contained in:
@@ -30,12 +30,13 @@
|
||||
$found = false;
|
||||
$cidr_array = $settings->get('domain', 'cidr');
|
||||
if (!empty($cidr_array)) {
|
||||
foreach($cidr_array as $cidr) {
|
||||
foreach($cidr_array as $cidr_value) {
|
||||
if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
unset($cidr_value);
|
||||
}
|
||||
if (!$found) {
|
||||
echo "access denied";
|
||||
|
||||
Reference in New Issue
Block a user