# HG changeset patch # User rejo # Date 1209408439 0 # Node ID bef105ffb0179fed3ba02acb854cabc64f749be2 # Parent edd0c3ee3e1ddf8ffed02e16b11c4f90b279d6d1 [feladat @ 249] Added a small check to make sure a nice message is shown if the users does not have view access to any zone (in list_zones.php). diff -r edd0c3ee3e1d -r bef105ffb017 list_zones.php --- a/list_zones.php Mon Apr 28 18:18:06 2008 +0000 +++ b/list_zones.php Mon Apr 28 18:47:19 2008 +0000 @@ -39,7 +39,7 @@ if ($perm_view == "none") { echo "

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

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

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

\n"; } else { echo "
\n";