diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dumpschema.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dumpschema.php b/scripts/dumpschema.php index 818a4d5ea..20812fe5b 100644 --- a/scripts/dumpschema.php +++ b/scripts/dumpschema.php @@ -32,10 +32,10 @@ function indentOptions($indent) { $cutoff = 3; if ($indent < $cutoff) { - $space = str_repeat(' ', $indent * 4); + $space = $indent ? str_repeat(' ', $indent * 4) : ''; $sep = ","; $lf = "\n"; - $endspace = "$lf" . str_repeat(' ', ($indent - 1) * 4); + $endspace = "$lf" . ($indent ? str_repeat(' ', ($indent - 1) * 4) : ''); } else { $space = ''; $sep = ", "; |