View | Details | Raw Unified | Return to bug 8590
Collapse All | Expand All

(-)a/classes/core/VirtualArrayIterator.inc.php (-1 / +1 lines)
 Lines 63-69   class VirtualArrayIterator extends ItemIterator { Link Here 
63
	 * @return object VirtualArrayIterator
63
	 * @return object VirtualArrayIterator
64
	 */
64
	 */
65
	static function factory($wholeArray, $rangeInfo) {
65
	static function factory($wholeArray, $rangeInfo) {
66
		if ($rangeInfo->isValid()) $slicedArray = array_slice($wholeArray, $rangeInfo->getCount() * ($rangeInfo->getPage()-1), $rangeInfo->getCount());
66
		if ($rangeInfo->isValid()) $slicedArray = array_slice($wholeArray, $rangeInfo->getCount() * ($rangeInfo->getPage()-1), $rangeInfo->getCount(), true);
67
		return new VirtualArrayIterator($slicedArray, count($wholeArray), $rangeInfo->getPage(), $rangeInfo->getCount());
67
		return new VirtualArrayIterator($slicedArray, count($wholeArray), $rangeInfo->getPage(), $rangeInfo->getCount());
68
	}
68
	}
69
69

Return to bug 8590