BUGFIX Fixed inconsistent default to ViewableData::Modulus() - should be 0 as per ViewableData::MultipleOf()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@94073 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-11-30 23:50:25 +00:00 committed by Sam Minnee
parent 8022f06c8d
commit bea427d4fb

View File

@ -628,7 +628,7 @@ class ViewableData extends Object implements IteratorAggregate {
* @param int $startIndex Number to start count from. * @param int $startIndex Number to start count from.
* @return int * @return int
*/ */
public function Modulus($mod, $startIndex = 1) { public function Modulus($mod, $startIndex = 0) {
return ($this->iteratorPos + $startIndex) % $mod; return ($this->iteratorPos + $startIndex) % $mod;
} }