Skip to content

Commit

Permalink
Remove an useless else from ExportPhparray
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 20, 2021
1 parent aaaff9c commit 8ee6fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/classes/Plugins/Export/ExportPhparray.php
Expand Up @@ -198,6 +198,8 @@ public function exportData(
$columns[$i] = stripslashes($col_as);
}

$tablefixed = $table;

// fix variable names (based on
// https://www.php.net/manual/en/language.variables.basics.php)
if (
Expand All @@ -218,8 +220,6 @@ public function exportData(
if (preg_match('/^[a-zA-Z_\x7f-\xff]/', $tablefixed) === 0) {
$tablefixed = '_' . $tablefixed;
}
} else {
$tablefixed = $table;
}

$buffer = '';
Expand Down

0 comments on commit 8ee6fba

Please sign in to comment.