# HG changeset patch # User rejo # Date 1206776097 0 # Node ID b1015b3055affd3122aed51960ccd3df2aaa8d6f # Parent fee925b9bdefee498d5725b0abbde7846159ea69 [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. diff -r fee925b9bdef -r b1015b3055af list_zones.php --- 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 "

" . _('List zones') . "

\n"; if ($perm_view == "none") { - echo "

" . _("You do not have the permission to see any zones.") . "

\n"; + echo "

" . _('You do not have the permission to see any zones.') . "

\n"; +} elseif ($count_zones_view > ROWAMOUNT && $count_zones_all_letterstart == "0") { + echo "

" . _('There are no zones to show in this listing.') . "

\n"; } else { echo "
\n"; show_pages($count_zones_all_letterstart,ROWAMOUNT);