Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2017-12-01 14:22:32 +0300
committerdartcafe <github@dartcafe.de>2017-12-01 14:22:32 +0300
commit5fdef472e1248d2a6a6ee901814f6550282b5aa9 (patch)
tree1eb8c96581d13727defc17904999ba0ec9e7449a /lib
parent4f2c7756d47e4384f9c62f5c32c1d77eb6c8d524 (diff)
fix
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PageController.php4
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);
}