1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00

Fix issue processwire/processwire-issues#1658 using solution suggested by @netcarver

This commit is contained in:
Ryan Cramer
2022-12-29 08:24:17 -05:00
parent 6018c1fbc4
commit 7e25c73728
2 changed files with 2 additions and 2 deletions

View File

@@ -992,7 +992,7 @@ class ProcessModule extends Process {
$sectionsQty[$section]++;
}
$out .= $table->render();
$out .= $table ? $table->render() : '';
if($options['allowSections']) {
$out .= "</div>";

View File

@@ -1589,7 +1589,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
} else if($name === 'template') {
// template label or name
$allowName = $this->useColumnLabels ? trim($this->get('sort'), '-') === 'template' : true;
$allowName = $this->useColumnLabels ? trim((string) $this->get('sort'), '-') === 'template' : true;
$t = $p->template;
$value = $t->getLabel();
// include template name only if it differs from template label