[feladat @ 300]
Bugfix: When no zones are available in current listing, it isn't possible to switch to an other listing.
Fixed this by displaying the character selection in this case. Closes: #81.
Bug reported by Tom Hutchison.
--- a/list_zones.php Mon Jul 14 22:44:32 2008 +0000
+++ b/list_zones.php Thu Jul 24 17:21:33 2008 +0000
@@ -40,6 +40,11 @@
if ($perm_view == "none") {
echo " <p>" . _('You do not have the permission to see any zones.') . "</p>\n";
} elseif (($count_zones_view > $iface_rowamount && $count_zones_all_letterstart == "0") || $count_zones_view == 0) {
+ if ($count_zones_view > $iface_rowamount) {
+ echo "<div class=\"showmax\">";
+ show_letters(LETTERSTART);
+ echo "</div>";
+ }
echo " <p>" . _('There are no zones to show in this listing.') . "</p>\n";
} else {
echo " <div class=\"showmax\">\n";