mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed page.collection() returning array and not Collection object when header variable did not exist
This commit is contained in:
parent
4e283322ea
commit
e2ee02a71d
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user