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:
@@ -992,7 +992,7 @@ class ProcessModule extends Process {
|
||||
$sectionsQty[$section]++;
|
||||
|
||||
}
|
||||
$out .= $table->render();
|
||||
$out .= $table ? $table->render() : '';
|
||||
|
||||
if($options['allowSections']) {
|
||||
$out .= "</div>";
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user