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
This commit is contained in:
Sean Harvey 2009-12-16 05:36:20 +00:00
parent ed630229ab
commit 0cc0d3c767

View File

@ -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;
}