diff options
author | Michal Čihař <michal@cihar.com> | 2010-01-22 18:40:19 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2010-01-22 18:40:19 +0300 |
commit | c43d6db0493d0b56842fef8683ad3c508989b212 (patch) | |
tree | 6b0f3141ac6cb338a360b6264a4d45215b0719cc /tbl_create.php | |
parent | be348f66cc9b24b018fb8f4a9e335b9d66210c4b (diff) |
Make tbl_create.php fail if database does not exist.
Diffstat (limited to 'tbl_create.php')
-rw-r--r-- | tbl_create.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tbl_create.php b/tbl_create.php index 0390c03c0e..397ba21e7f 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -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 |