mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
Fixed page.collection() returning array and not Collection object when header variable did not exist
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.1.14
|
||||
## XX/XX/2017
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed `page.collection()` returning array and not Collection object when header variable did not exist
|
||||
|
||||
# v1.1.13
|
||||
## 01/17/2017
|
||||
|
||||
|
||||
@@ -2288,7 +2288,7 @@ class Page
|
||||
}
|
||||
|
||||
if (!isset($params['items'])) {
|
||||
return [];
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
$collection = $this->evaluate($params['items']);
|
||||
|
||||
Reference in New Issue
Block a user