diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-07 17:01:14 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-07 17:01:14 -0700 |
commit | cc69ede1eeeb6c122b820367b07a56395a481557 (patch) | |
tree | 29b77a18bbd50d998824bb610fc4b51285c1bb17 /scripts | |
parent | 443be8a99c52b05b6a3c6acdbdc944b537faeff6 (diff) |
stop str_repeat from whinging about being run with repeat value of 0. :P
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 = ", "; |