r1677 + don't print the only delimiter after allocation
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 15 Feb 2008 12:24:58 +0000 (12:24 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 15 Feb 2008 12:24:58 +0000 (12:24 +0000)
inc/interface.php

index 3dc4a1cee7c40e54eb5fa8803e2b16c99c39a985..0554574e690c521eed8669b1fd1356f1d4219cfb 100644 (file)
@@ -1857,11 +1857,13 @@ function renderIPRange ($id)
                        echo "<td><a href='${root}?page=ipaddress&ip=${addr['ip']}'>${addr['ip']}</a></td><td>${addr['name']}</td><td>";
                        if ( $addr['reserved'] == 'yes')
                                echo "<b>Reserved;</b> ";
+                       $delim = '';
                        foreach ($range['addrlist'][$ip]['references'] as $ref)
                        {
-                               echo "<a href='${root}?page=object&object_id=${ref['object_id']}'>";
+                               echo "${delim}<a href='${root}?page=object&object_id=${ref['object_id']}'>";
                                echo $ref['name'] . (empty ($ref['name']) ? '' : '@');
-                               echo "${ref['object_name']}</a>; ";
+                               echo "${ref['object_name']}</a>";
+                               $delim = '; ';
                        }
                        echo "</td></tr>\n";
                }