r2132 - fixed bug in scanIPv4Space(), which made address names and allocations disappear
[racktables] / inc / database.php
index 02ed917b2e39e7002f8dd5d8801424190103ff6c..864797f6b8de8dd1eec592ffa19eb9b8be2c2665 100644 (file)
@@ -1001,6 +1001,7 @@ function scanIPv4Space ($i32_first, $i32_last)
        while ($row = $result->fetch (PDO::FETCH_ASSOC))
        {
                $ip_bin = ip2long ($row['ip']);
+               if (!isset ($ret[$ip_bin]))
                        $ret[$ip_bin] = constructIPv4Address ($row['ip']);
                if (!isset ($dnamecache[$row['object_id']]))
                {