MapList fixed

This commit is contained in:
Max Klaversma 2014-04-29 22:31:24 +02:00 committed by Steffen Schröder
parent 9b965a1720
commit 904f000481

View File

@ -145,7 +145,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$script = $maniaLink->getScript();
$paging = new Paging();
$script->addFeature($paging);
/*if (is_int($pageCount))*/ $paging->setCustomMaxPageNumber($pageCount);
if (!is_null($pageCount)) $paging->setCustomMaxPageNumber($pageCount);
$paging->setChunkActionAppendsPageNumber(true);
$paging->setChunkActions(self::ACTION_PAGING_CHUNKS);