From c58b9079179bc3c4e66baa13ed753c096571a01e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 28 Aug 2016 09:12:45 +0200 Subject: fix last modified cropping --- lib/Db/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/Item.php b/lib/Db/Item.php index a208cc798..943002c32 100644 --- a/lib/Db/Item.php +++ b/lib/Db/Item.php @@ -257,10 +257,10 @@ class Item extends Entity implements IAPI, \JsonSerializable { */ public function cropApiLastModified() { $lastModified = $this->getLastModified(); - if (strlen((string)$lastModified > 10)) { + if (strlen((string)$lastModified) > 10) { return (int)substr($lastModified, 0, -6); } else { - return $lastModified; + return (int)$lastModified; } } -- cgit v1.2.3