diff --git a/framework/yii/widgets/BaseListView.php b/framework/yii/widgets/BaseListView.php index ec9c1cb..4c4e5a4 100644 --- a/framework/yii/widgets/BaseListView.php +++ b/framework/yii/widgets/BaseListView.php @@ -147,6 +147,9 @@ abstract class BaseListView extends Widget public function renderSummary() { $count = $this->dataProvider->getCount(); + if ($count <= 0) { + return ''; + } if (($pagination = $this->dataProvider->getPagination()) !== false) { $totalCount = $this->dataProvider->getTotalCount(); $begin = $pagination->getPage() * $pagination->pageSize + 1;