Private GIT

Skip to content
Snippets Groups Projects
Commit ef03d813 authored by Gary Allan's avatar Gary Allan
Browse files

Fix reported scrutinizer issues

parent d7b32041
Branches
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ function get_strict_subnets($Subnets, $sectionId, $cidr, $result_fields="*") {
$strict_subnets = $Subnets->fetch_overlapping_subnets($cidr, 'sectionId', $sectionId, $result_fields);
if (!is_array($strict_subnets)) return array();
list(,$cidr_mask) = explode('/', $cidr);
foreach ($strict_subnets as $i => $subnet) {
if ($subnet->mask >= $cidr_mask) unset($strict_subnets[$i]); else break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment