r1830 + some networks could have more that one tag bound, return such ones only once
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Mar 2008 22:08:07 +0000 (22:08 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Mar 2008 22:08:07 +0000 (22:08 +0000)
inc/database.php

index 1fe8d39..5e8ca91 100644 (file)
@@ -906,7 +906,7 @@ function getAddressspaceList ($tagfilter = array())
                }
        }
        $query =
                }
        }
        $query =
-               "select ".
+               "select distinct ".
                "id as IPRanges_id, ".
                "INET_NTOA(ip) as IPRanges_ip, ".
                "mask as IPRanges_mask, ".
                "id as IPRanges_id, ".
                "INET_NTOA(ip) as IPRanges_ip, ".
                "mask as IPRanges_mask, ".