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:
authorAtul Pratap Singh <atulpratapsingh05@gmail.com>2013-07-29 16:06:45 +0400
committerAtul Pratap Singh <atulpratapsingh05@gmail.com>2013-07-29 16:06:45 +0400
commit5d590ef3d67b4f87b58dbda50e86519bf9b64d34 (patch)
treecc4f0d67ea7b6ecc1858c2ee956b56efcc3b1f51 /import.php
parente73bfee67c89aa8afdf900339dc7c19fee18d7cb (diff)
Fix bug#4006
Diffstat (limited to 'import.php')
-rw-r--r--import.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/import.php b/import.php
index 6075d5d94f..a8942dc047 100644
--- a/import.php
+++ b/import.php
@@ -612,6 +612,15 @@ if (! empty($last_query_with_results)) {
if ($go_sql) {
include 'sql.php';
+} else if ($result) {
+ $response = PMA_Response::getInstance();
+ $response->isSuccess(true);
+ $response->addJSON('message', PMA_Message::success($msg));
+ $response->addJSON('sql_query', PMA_Util::getMessage('', $sql_query));
+} else if ($result == false) {
+ $response = PMA_Response::getInstance();
+ $response->isSuccess(false);
+ $response->addJSON('message', PMA_Message::error($msg));
} else {
$active_page = $goto;
include '' . $goto;