# HG changeset patch # User rejo # Date 1182997211 0 # Node ID a2826b0ebcff14087056163123e595db5a245c4e # Parent 370e0d7fa3e7e43622ded920f88c74868812e4ed [feladat @ 81] Bugfix. If the number of zones exceeded the "max row limit" and a "starting letter" with no zones was requested in list_zones.php it would show no zones while incorrectly stating "showing 1 out of N zones". diff -r 370e0d7fa3e7 -r a2826b0ebcff list_zones.php --- a/list_zones.php Wed Jun 27 22:36:02 2007 +0000 +++ b/list_zones.php Thu Jun 28 02:20:11 2007 +0000 @@ -34,7 +34,7 @@ $doms = get_domains(0,"all",ROWSTART,ROWAMOUNT); } else { $doms = get_domains(0,LETTERSTART,ROWSTART,ROWAMOUNT); - $num_show_domains = count($doms); + $num_show_domains = ($doms == -1) ? 0 : count($doms); } // If the user doesnt have any domains print a message saying so