From 1577a55fcfd865401b16eee0fa5e34cfd54f2ec1 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 26 Nov 2020 17:43:37 +0000 Subject: Fix a warning --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index dac2441..ad5e5ab 100644 --- a/lib.php +++ b/lib.php @@ -232,7 +232,7 @@ function plural($num) function key2timestamp($key) { global $tz; - $date = DateTime::createFromFormat("YmdHis", $key+0, $tz); + $date = DateTime::createFromFormat("YmdHis", (int)$key, $tz); if ($date === false) return null; -- cgit v1.2.1