objecte/table: do not cope with missing filters

This commit is contained in:
Thomas Gelf 2016-03-01 06:40:04 +01:00
parent 804a30f8d4
commit b3918b9ab5

View File

@ -4,7 +4,7 @@
<span data-base-target="_next"> <span data-base-target="_next">
<?= $this->addLink ?> <?= $this->addLink ?>
</span> </span>
<?php if (count($table) || ! $this->filterEditor->getFilter()->isEmpty()): ?> <?php if (count($table) || ($this->filterEditor && ! $this->filterEditor->getFilter()->isEmpty())): ?>
<?= $this->filterEditor ?> <?= $this->filterEditor ?>
<?php endif ?> <?php endif ?>
<?= $this->table->getPaginator() ?> <?= $this->table->getPaginator() ?>