Fixed Page::expires(0) that was not getting picked up

This commit is contained in:
Andy Miller
2017-03-08 15:34:54 -07:00
parent 703080a329
commit ebb8786cd9
2 changed files with 2 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
1. [](#bugfix)
* Fixed a minor bug in Number validation [#1329](https://github.com/getgrav/grav/issues/1329)
* Fixed exception when trying to find user account and there is no `user://accounts` folder
* Fixed issue when setting `Page::expires(0)` [Admin #1009](https://github.com/getgrav/grav-plugin-admin/issues/1009)
# v1.1.17
## 02/17/2017

View File

@@ -1208,7 +1208,7 @@ class Page
$this->expires = $var;
}
return empty($this->expires) ? Grav::instance()['config']->get('system.pages.expires') : $this->expires;
return !isset($this->expires) ? Grav::instance()['config']->get('system.pages.expires') : $this->expires;
}
/**