Skip to content

Commit

Permalink
Bugfix: When no zones are available in current listing, it isn't poss…
Browse files Browse the repository at this point in the history
…ible to switch to an other listing.

Fixed this by displaying the character selection in this case. Closes: poweradmin#81.
Bug reported by Tom Hutchison.
  • Loading branch information
pbeernink committed Jul 24, 2008
1 parent e732722 commit 0223fab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions list_zones.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0223fab

Please sign in to comment.