summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.php b/lib.php
index 213d9cc..f6621a8 100644
--- a/lib.php
+++ b/lib.php
@@ -225,7 +225,7 @@ function key2timestamp($key) {
global $tz;
$date = DateTime::createFromFormat("YmdHis", $key+0, $tz);
- if ($date <= 0)
+ if ($date === false)
return null;
return $date->getTimestamp();