Fixed page.collection() returning array and not Collection object when header variable did not exist

This commit is contained in:
Matias Griese
2017-01-18 10:42:13 +02:00
parent 4e283322ea
commit e2ee02a71d
2 changed files with 7 additions and 1 deletions

View File

@@ -2288,7 +2288,7 @@ class Page
}
if (!isset($params['items'])) {
return [];
return new Collection();
}
$collection = $this->evaluate($params['items']);