From 0cc0d3c76740c98c0168ba4113bade2f5f6e1962 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 16 Dec 2009 05:36:20 +0000 Subject: [PATCH] BUGFIX Fixed inconsistent default to ViewableData::Modulus() - should be 0 as per ViewableData::MultipleOf() (from r94073) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95587 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/ViewableData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ViewableData.php b/core/ViewableData.php index 63debda2b..43123ffc5 100755 --- a/core/ViewableData.php +++ b/core/ViewableData.php @@ -628,7 +628,7 @@ class ViewableData extends Object implements IteratorAggregate { * @param int $startIndex Number to start count from. * @return int */ - public function Modulus($mod, $startIndex = 1) { + public function Modulus($mod, $startIndex = 0) { return ($this->iteratorPos + $startIndex) % $mod; }