mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 23:16:59 +02:00
Don't allow null to be set as Page content
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fix for modular page preview [#2066](https://github.com/getgrav/grav/issues/2066)
|
||||
* `Page::routeCanonical()` should be string not array [#2069](https://github.com/getgrav/grav/issues/2069)
|
||||
* Don't allow `null` to be set as Page content
|
||||
|
||||
# v1.4.6
|
||||
## 06/20/2018
|
||||
|
||||
@@ -813,6 +813,8 @@ class Page
|
||||
*/
|
||||
public function setRawContent($content)
|
||||
{
|
||||
$content = $content === null ? '': $content;
|
||||
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user