diff options
author | dartcafe <github@dartcafe.de> | 2017-12-01 14:22:32 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2017-12-01 14:22:32 +0300 |
commit | 5fdef472e1248d2a6a6ee901814f6550282b5aa9 (patch) | |
tree | 1eb8c96581d13727defc17904999ba0ec9e7449a /lib | |
parent | 4f2c7756d47e4384f9c62f5c32c1d77eb6c8d524 (diff) |
fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/PageController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 02dcdeeb..24b2641c 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -368,7 +368,7 @@ class PageController extends Controller { $chosenDates = json_decode($chosenDates); $expire = null; - if ($expireTs !== null && $expireTs !== '') { + if ($expireTs !== 0 && $expireTs !== '') { // Add one day, so it expires at the end of a day $expire = date('Y-m-d H:i:s', $expireTs + 60 * 60 * 24); } @@ -476,7 +476,7 @@ class PageController extends Controller { $chosenDates = json_decode($chosenDates); $expire = null; - if ($expireTs !== null && $expireTs !== '') { + if ($expireTs !== 0 && $expireTs !== '') { // Add one day, so it expires at the end of a day $expire = date('Y-m-d H:i:s', $expireTs + 60 * 60 * 24); } |