aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/utils.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-09-22 00:59:07 +0200
committerKevin Chabowski <kevin@kch42.de>2011-09-22 00:59:07 +0200
commit538003a73670e3b9646d0a381b45893c6edac810 (patch)
tree044556381b64272e6416c264b29089e7082cbbc1 /ratatoeskr/sys/utils.php
parentf48aa098e588ce56c91ae8a8e6e69ca0bb64cc69 (diff)
downloadratatoeskr-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/sys/utils.php')
-rw-r--r--ratatoeskr/sys/utils.php2
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;
}