From 538003a73670e3b9646d0a381b45893c6edac810 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 22 Sep 2011 00:59:07 +0200 Subject: Fixed array_repeat I'm quite ashamed, that I managed to produce a bug in this function :-/ --- ratatoeskr/sys/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/sys') 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; } -- cgit v1.2.3-70-g09d2