[feladat @ 300] release_2.1.1
authorpeter
Thu, 24 Jul 2008 17:21:33 +0000
changeset 191 963d62dc1c80
parent 190 7a683326ccec
child 192 3d18290ac993
[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.
list_zones.php
--- 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";