Permalink
Browse files

Simplify the logic a bit

  • Loading branch information...
1 parent 3ad443a commit 72cdb4d05861ef90c1201c10b9590c29cb01db29 @madhuracj madhuracj committed Jul 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 setup/lib/ConfigGenerator.class.php
@@ -142,8 +142,8 @@ private static function _exportZeroBasedArray(array $array, $crlf)
$ret .= implode(', ', $retv);
} else {
// more than 4 values - value per line
- $imax = count($retv)-1;
- for ($i = 0; $i <= $imax; $i++) {
+ $imax = count($retv);
+ for ($i = 0; $i < $imax; $i++) {
$ret .= ($i > 0 ? ',' : '') . $crlf . ' ' . $retv[$i];
}
}

0 comments on commit 72cdb4d

Please sign in to comment.