import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -1,5 +1,13 @@
<?php
/*
* @copyright Copyright (C) 2005-2010 Keyboard Monkeys Ltd. http://www.kb-m.com
* @license http://creativecommons.org/licenses/BSD/ BSD Licensese
* @author Keyboard Monkeys Ltd.
* @package Monkeys Framework
* @packager Keyboard Monkeys
*/
/**
* This iterator builds a collection filled with zeroes, except for the range it knows
* the paginator will query it for.
@ -12,7 +20,7 @@ class Monkeys_Iterator implements Iterator, Countable
public function __construct($items, $numItems, $recordsPerPage, $page)
{
if ($items) {
if ($items && $numItems > 1) {
$this->_items = array_fill(0, $numItems- 1, 0);
} else {
$this->_items = array();