From: chriskl Date: Thu, 22 May 2003 04:11:35 +0000 (+0000) Subject: fix bug when there's no groups X-Git-Tag: REL_3-0-BETA-1~3 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=049df628ce05be3fae604af4b7bada743383403d;p=phppgadmin.git fix bug when there's no groups --- diff --git a/privileges.php b/privileges.php index ad89c07f..f2ba2b8f 100644 --- a/privileges.php +++ b/privileges.php @@ -3,7 +3,7 @@ /** * Manage privileges in a database * - * $Id: privileges.php,v 1.12 2003/05/21 09:06:23 chriskl Exp $ + * $Id: privileges.php,v 1.13 2003/05/22 04:11:35 chriskl Exp $ */ // Include application functions @@ -57,15 +57,19 @@ echo "\n"; echo "{$lang['strgroups']}\n"; echo "\n"; - echo "PUBLIC
\n"; - echo "PUBLIC\n"; + // Only show groups if there are groups! + if ($groups->recordCount() > 0) { + echo "
\n"; } - echo "\n"; + echo "\n"; echo "{$lang['strprivileges']}\n"; echo "\n"; foreach ($data->privlist[$_REQUEST['type']] as $v) {