r2831 - also fix ticket:235 in trunk
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 8 Jun 2009 15:17:29 +0000 (15:17 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 8 Jun 2009 15:17:29 +0000 (15:17 +0000)
ChangeLog
inc/interface.php

index 41cf87768abb0f90384127f887ff6df4afd12e5e..3953a968d3a0ab71a4b268d6d7b9f0b0e21adc02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 0.17.2
        update: show appropriate message, if a record cannot be found
 0.17.2
        update: show appropriate message, if a record cannot be found
+       bugfix: do not produce PHP warning on LivePTR tab
 0.17.1 2009-06-03
        bugfix: tags were not displayed on "File" page
        bugfix: multiline comment for an added file was stored incorrectly
 0.17.1 2009-06-03
        bugfix: tags were not displayed on "File" page
        bugfix: multiline comment for an added file was stored incorrectly
index f634f1056bd8e8df23281ca1f214ff866b72456d..5ff6d8edb518e5ebaae2d4e019b8995f5f9b6209 100644 (file)
@@ -4628,7 +4628,7 @@ function renderLivePTR ($id)
                        $cnt_mismatch++;
                }
                echo "><td class='tdleft";
                        $cnt_mismatch++;
                }
                echo "><td class='tdleft";
-               if (strlen ($range['addrlist'][$ip]['class']))
+               if (isset ($range['addrlist'][$ip]['class']) and strlen ($range['addrlist'][$ip]['class']))
                        echo ' ' . $range['addrlist'][$ip]['class'];
                echo "'><a href='".makeHref(array('page'=>'ipaddress', 'ip'=>$straddr))."'>${straddr}</a></td>";
                echo "<td class=tdleft>${addr['name']}</td><td class=tdleft>${ptrname}</td><td>";
                        echo ' ' . $range['addrlist'][$ip]['class'];
                echo "'><a href='".makeHref(array('page'=>'ipaddress', 'ip'=>$straddr))."'>${straddr}</a></td>";
                echo "<td class=tdleft>${addr['name']}</td><td class=tdleft>${ptrname}</td><td>";