From 51fc2da513ab549e3aae9026975aee13ee509c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 28 Apr 2004 14:46:16 +0000 Subject: [PATCH] No ugly message when editing privileges for non-existant database (bug #942357). --- ChangeLog | 2 ++ server_privileges.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7e2dffc3b..1ec44cb07 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ any (bug #943626). * css/phpmyadmin.css.php: Not .nowrap, but div.nowrap should have zero margin/padding. + * server_privileges.php: No ugly message when editing privileges for + non-existant database (bug #942357). 2004-04-28 Garvin Hicking * left.php, main.php, server_databases.php, common.lib.php, diff --git a/server_privileges.php b/server_privileges.php index 7373ada46..61adaa184 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1178,7 +1178,7 @@ if (empty($adduser) && empty($checkprivs)) { } else { echo ' ' . "\n" . ' ' . "\n"; - if ($res = PMA_DBI_try_query('SHOW TABLES FROM ' . PMA_backquote($dbname) . ';', NULL, PMA_DBI_QUERY_STORE)) { + if ($res = @PMA_DBI_try_query('SHOW TABLES FROM ' . PMA_backquote($dbname) . ';', NULL, PMA_DBI_QUERY_STORE)) { $pred_tbl_array = array(); while ($row = PMA_DBI_fetch_row($res)) { if (!isset($found_rows) || !in_array($row[0], $found_rows)) {