diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-06 02:56:34 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2019-01-06 02:56:34 +0300 |
commit | 4cee0cbc12528a2c30adcf28eacf4f4674bb0993 (patch) | |
tree | b864c9e13082efafcab7a1ab1b3bce6f17d2b759 /export.php | |
parent | 999b4d14f05abd38bd830b2d47fcb82f263a3ce9 (diff) |
Adds space after not (!) and type cast
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'export.php')
-rw-r--r-- | export.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/export.php b/export.php index 29e5ee115f..fbae9adcb2 100644 --- a/export.php +++ b/export.php @@ -303,12 +303,12 @@ if ($export_type == 'server') { // preference over SQL Query aliases. $parser = new \PhpMyAdmin\SqlParser\Parser($sql_query); $aliases = []; -if ((!empty($parser->statements[0])) +if ((! empty($parser->statements[0])) && ($parser->statements[0] instanceof \PhpMyAdmin\SqlParser\Statements\SelectStatement) ) { $aliases = \PhpMyAdmin\SqlParser\Utils\Misc::getAliases($parser->statements[0], $db); } -if (!empty($_POST['aliases'])) { +if (! empty($_POST['aliases'])) { $aliases = $export->mergeAliases($aliases, $_POST['aliases']); $_SESSION['tmpval']['aliases'] = $_POST['aliases']; } @@ -466,13 +466,13 @@ do { $separate_files ); } elseif ($export_type == 'database') { - if (!isset($table_structure) || !is_array($table_structure)) { + if (! isset($table_structure) || ! is_array($table_structure)) { $table_structure = []; } - if (!isset($table_data) || !is_array($table_data)) { + if (! isset($table_data) || ! is_array($table_data)) { $table_data = []; } - if (!empty($_POST['structure_or_data_forced'])) { + if (! empty($_POST['structure_or_data_forced'])) { $table_structure = $tables; $table_data = $tables; } |