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>2016-08-01 12:05:39 +0300
committerMichal Čihař <michal@cihar.com>2016-08-01 12:05:39 +0300
commit3bcd45f87f64330f890e5cd5e22c39cdcd419ea6 (patch)
tree7807c3e91958c7e8e9307a47d30423128cb1eb60 /sql.php
parent257a74e116d44e5ede4d69e9b108721d62933cb4 (diff)
parent2ee0e4ed0e86572f15764fea6ef37bdaf546e6ee (diff)
Merge commit '2ee0e4ed0e86572f15764fea6ef37bdaf546e6ee'
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql.php b/sql.php
index 6e22d62b0e..6e6257b732 100644
--- a/sql.php
+++ b/sql.php
@@ -141,11 +141,15 @@ require_once 'libraries/parse_analyze.lib.php';
list(
$analyzed_sql_results,
$db,
- $table
+ $table_from_sql
) = PMA_parseAnalyze($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);
+if ($table != $table_from_sql && !empty($table_from_sql)) {
+ $table = $table_from_sql;
+}
+
/**
* Check rights in case of DROP DATABASE