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:
authorDeven Bansod <devenbansod.bits@gmail.com>2016-09-28 17:39:45 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2016-09-28 17:39:45 +0300
commitd6571ef86c044cf6127bedfba3294be91676e8c4 (patch)
tree3fb4d16bfadf1f2e482ca43f1072ed5346b9058a /tbl_export.php
parent353aadbafb5e98f7a86287eeae8c1e47a034d8fb (diff)
parentf54f8fa322eb3b1e894c24e0fa14383fe853ddc0 (diff)
Merge branch 'QA_4_6'
Conflicts: po/sk.po
Diffstat (limited to 'tbl_export.php')
-rw-r--r--tbl_export.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/tbl_export.php b/tbl_export.php
index e8e7230cc0..fd6989d82e 100644
--- a/tbl_export.php
+++ b/tbl_export.php
@@ -67,13 +67,15 @@ if (! empty($sql_query)) {
}
// Rebuilding the SELECT and FROM clauses.
- $replaces = array(
- array(
- 'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(
- $parser->statements[0]->from
+ if (count($parser->statements[0]->from) > 0) {
+ $replaces = array(
+ array(
+ 'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(
+ $parser->statements[0]->from
+ ),
),
- ),
- );
+ );
+ }
// Checking if the WHERE clause has to be replaced.
if ((!empty($where_clause)) && (is_array($where_clause))) {