mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8022f06c8d
commit
bea427d4fb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user