# HG changeset patch # User rejo # Date 1181083247 0 # Node ID 305cee3b388d63bc466f1bb29b1fb01a1237bfb4 # Parent 2093cbe1133ee49c6a92aab03cda797dabfcecac [feladat @ 62] Bugfix. In list_zones.php with no domains created, get_domains will return -1, count() will not be 0, as all_doms contains one element. Similar problem in existed in list_supermasters.php. diff -r 2093cbe1133e -r 305cee3b388d list_supermasters.php --- a/list_supermasters.php Mon Jun 04 19:04:55 2007 +0000 +++ b/list_supermasters.php Tue Jun 05 22:40:47 2007 +0000 @@ -14,16 +14,7 @@ { $supermasters = get_supermasters(0); - $num_supermasters = count($supermasters); - if ($supermasters < 0) - { - $num_supermasters = "0"; - } - else - { - $num_supermasters = count($supermasters); - } - + $num_supermasters = ($supermasters == -1) ? 0 : count($supermasters); ?>