Make tbl_create.php fail if database does not exist.

This commit is contained in:
Michal Čihař
2010-01-22 15:40:19 +00:00
parent be348f66cc
commit c43d6db049

View File

@@ -77,7 +77,10 @@ if (isset($_REQUEST['submit_num_fields'])) {
/**
* Selects the database to work with
*/
PMA_DBI_select_db($db);
if (!PMA_DBI_select_db($db)) {
PMA_mysqlDie(sprintf($GLOBALS['strDatabaseNotExisting'], htmlspecialchars($db)),
'', '', 'main.php');
}
/**
* The form used to define the structure of the table has been submitted