[feladat @ 81]
authorrejo
Thu, 28 Jun 2007 02:20:11 +0000
changeset 34 a2826b0ebcff
parent 33 370e0d7fa3e7
child 35 5533c4fff98f
[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".
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