No ugly message when editing privileges for non-existant database (bug #942357).
This commit is contained in:
@@ -11,6 +11,8 @@ $Source$
|
|||||||
any (bug #943626).
|
any (bug #943626).
|
||||||
* css/phpmyadmin.css.php: Not .nowrap, but div.nowrap should have zero
|
* css/phpmyadmin.css.php: Not .nowrap, but div.nowrap should have zero
|
||||||
margin/padding.
|
margin/padding.
|
||||||
|
* server_privileges.php: No ugly message when editing privileges for
|
||||||
|
non-existant database (bug #942357).
|
||||||
|
|
||||||
2004-04-28 Garvin Hicking <pma@supergarv.de>
|
2004-04-28 Garvin Hicking <pma@supergarv.de>
|
||||||
* left.php, main.php, server_databases.php, common.lib.php,
|
* left.php, main.php, server_databases.php, common.lib.php,
|
||||||
|
@@ -1178,7 +1178,7 @@ if (empty($adduser) && empty($checkprivs)) {
|
|||||||
} else {
|
} else {
|
||||||
echo ' <input type="hidden" name="dbname" value="' . htmlspecialchars($dbname) . '"/>' . "\n"
|
echo ' <input type="hidden" name="dbname" value="' . htmlspecialchars($dbname) . '"/>' . "\n"
|
||||||
. ' <label for="text_tablename">' . $strAddPrivilegesOnTbl . ':</label>' . "\n";
|
. ' <label for="text_tablename">' . $strAddPrivilegesOnTbl . ':</label>' . "\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();
|
$pred_tbl_array = array();
|
||||||
while ($row = PMA_DBI_fetch_row($res)) {
|
while ($row = PMA_DBI_fetch_row($res)) {
|
||||||
if (!isset($found_rows) || !in_array($row[0], $found_rows)) {
|
if (!isset($found_rows) || !in_array($row[0], $found_rows)) {
|
||||||
|
Reference in New Issue
Block a user