From 7145cd267b726c5d99bec518a0afea1ce4d6fa1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sun, 27 Apr 2014 17:21:38 +0200 Subject: [PATCH] fml fix --- application/core/Libs/FML/Script/Features/Paging.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/core/Libs/FML/Script/Features/Paging.php b/application/core/Libs/FML/Script/Features/Paging.php index 5ea3f7d4..24714b79 100644 --- a/application/core/Libs/FML/Script/Features/Paging.php +++ b/application/core/Libs/FML/Script/Features/Paging.php @@ -6,7 +6,6 @@ use FML\Controls\Control; use FML\Script\Script; use FML\Script\ScriptLabel; use FML\Script\Builder; - use FML\Controls\Label; use FML\Script\ScriptInclude; @@ -201,7 +200,10 @@ class Paging extends ScriptFeature { } $pagingId = $minPage->getControl()->getId(true); - $pageLabelId = $this->label->getId(true); + $pageLabelId = ''; + if ($this->label) { + $pageLabelId = $this->label->getId(true); + } $pagesArrayText = $this->getPagesArrayText(); $pageButtonsArrayText = $this->getPageButtonsArrayText(); @@ -257,6 +259,7 @@ Void {$updatePageFunction}(Text _PagingId, Text _PageLabelId, Integer _BrowseAct } TriggerPageAction(ChunkAction); } + if (_PageLabelId == \"\") return; declare PageLabel <=> (Page.GetFirstChild(_PageLabelId) as CMlLabel); if (PageLabel == Null) return; PageLabel.Value = CurrentPage^\"/\"^_MaxPageNumber;