diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-09-22 00:59:07 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-09-22 00:59:07 +0200 |
commit | 538003a73670e3b9646d0a381b45893c6edac810 (patch) | |
tree | 044556381b64272e6416c264b29089e7082cbbc1 /ratatoeskr | |
parent | f48aa098e588ce56c91ae8a8e6e69ca0bb64cc69 (diff) | |
download | ratatoeskr-cms-538003a73670e3b9646d0a381b45893c6edac810.tar.gz ratatoeskr-cms-538003a73670e3b9646d0a381b45893c6edac810.tar.bz2 ratatoeskr-cms-538003a73670e3b9646d0a381b45893c6edac810.zip |
Fixed array_repeat
I'm quite ashamed, that I managed to produce a bug in this function :-/
Diffstat (limited to 'ratatoeskr')
-rw-r--r-- | ratatoeskr/sys/utils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php index 5e132f4..bdb472c 100644 --- a/ratatoeskr/sys/utils.php +++ b/ratatoeskr/sys/utils.php @@ -25,7 +25,7 @@ function array_repeat($val, $n) { $rv = array(); - for($i = 1; $i < $n; ++$i) + for($i = 0; $i < $n; ++$i) array_push($rv, $val); return $rv; } |