r1938 + fix warning about missing array reference
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 3 Jun 2008 12:21:51 +0000 (12:21 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 3 Jun 2008 12:21:51 +0000 (12:21 +0000)
inc/interface.php

index 733844d..64df4ac 100644 (file)
@@ -4578,7 +4578,7 @@ function renderLivePTR ($id = 0)
                        $cnt_mismatch++;
                }
                echo "><td class='tdleft";
-               if ($addr['reserved'] == 'yes' or count ($range['addrlist'][$ip]['references']))
+               if ($addr['reserved'] == 'yes' or (isset ($range['addrlist'][$ip]) and count ($range['addrlist'][$ip]['references'])))
                        echo ' trbusy';
                echo "'><a href='${root}?page=ipaddress&ip=${straddr}'>${straddr}</a></td>";
                echo "<td class=tdleft>${addr['name']}</td><td class=tdleft>${ptrname}</td><td>";