Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2010-01-22 18:40:19 +0300
committerMichal Čihař <michal@cihar.com>2010-01-22 18:40:19 +0300
commitc43d6db0493d0b56842fef8683ad3c508989b212 (patch)
tree6b0f3141ac6cb338a360b6264a4d45215b0719cc /tbl_create.php
parentbe348f66cc9b24b018fb8f4a9e335b9d66210c4b (diff)
Make tbl_create.php fail if database does not exist.
Diffstat (limited to 'tbl_create.php')
-rw-r--r--tbl_create.php5
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