summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-11-26 17:43:37 +0000
committerPascal Terjan <pterjan@mageia.org>2020-11-26 17:43:37 +0000
commit1577a55fcfd865401b16eee0fa5e34cfd54f2ec1 (patch)
tree3019cada7087f25de7b63508825ae5cb0ea8b8da
parent9e274e5d754e4d98190afb0d45f62b3af9eaa850 (diff)
downloadpkgsubmit-1577a55fcfd865401b16eee0fa5e34cfd54f2ec1.tar
pkgsubmit-1577a55fcfd865401b16eee0fa5e34cfd54f2ec1.tar.gz
pkgsubmit-1577a55fcfd865401b16eee0fa5e34cfd54f2ec1.tar.bz2
pkgsubmit-1577a55fcfd865401b16eee0fa5e34cfd54f2ec1.tar.xz
pkgsubmit-1577a55fcfd865401b16eee0fa5e34cfd54f2ec1.zip
Fix a warning
-rw-r--r--lib.php2
1 files changed, 1 insertions, 1 deletions
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;