[feladat @ 208]
When in the zone listing letters are shown (too many zones to show on a single screen), the start letter is clickable only if there are any zones starting with that letter. If the users asks for a start letter that has no zones (because of bugs like the one fixed in r207 or because user manipulates URL in browser), a PHP error was shown. Code now verifies number of zones now first.
--- a/list_zones.php Fri Mar 28 21:57:43 2008 +0000
+++ b/list_zones.php Sat Mar 29 07:34:57 2008 +0000
@@ -38,7 +38,9 @@
echo " <h2>" . _('List zones') . "</h2>\n";
if ($perm_view == "none") {
- echo " <p>" . _("You do not have the permission to see any zones.") . "</p>\n";
+ echo " <p>" . _('You do not have the permission to see any zones.') . "</p>\n";
+} elseif ($count_zones_view > ROWAMOUNT && $count_zones_all_letterstart == "0") {
+ echo " <p>" . _('There are no zones to show in this listing.') . "</p>\n";
} else {
echo " <div class=\"showmax\">\n";
show_pages($count_zones_all_letterstart,ROWAMOUNT);