From d11cefbd907b726976716ce342496cd77c87471b Mon Sep 17 00:00:00 2001 From: John Cocula Date: Sun, 22 Mar 2020 21:52:24 +0000 Subject: [PATCH] Fix issue #34: log spammed with PHP warnings --- core/components/getpage/include.getpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/getpage/include.getpage.php b/core/components/getpage/include.getpage.php index 7280a48..54c56a5 100644 --- a/core/components/getpage/include.getpage.php +++ b/core/components/getpage/include.getpage.php @@ -32,7 +32,7 @@ function getpage_buildControls(& $modx, $properties) { $nav['last'] = getpage_makeUrl($modx, $properties, $i, $pageLastTpl); } } - $nav['pages'] = implode("\n", $nav['pages']); + $nav['pages'] = implode("\n", is_array($nav['pages']) ? $nav['pages'] : array()); } return $nav; }