diff options
author | Deven Bansod <devenbansod.bits@gmail.com> | 2016-09-28 17:39:45 +0300 |
---|---|---|
committer | Deven Bansod <devenbansod.bits@gmail.com> | 2016-09-28 17:39:45 +0300 |
commit | d6571ef86c044cf6127bedfba3294be91676e8c4 (patch) | |
tree | 3fb4d16bfadf1f2e482ca43f1072ed5346b9058a /tbl_export.php | |
parent | 353aadbafb5e98f7a86287eeae8c1e47a034d8fb (diff) | |
parent | f54f8fa322eb3b1e894c24e0fa14383fe853ddc0 (diff) |
Merge branch 'QA_4_6'
Conflicts:
po/sk.po
Diffstat (limited to 'tbl_export.php')
-rw-r--r-- | tbl_export.php | 14 |
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))) { |