diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-08-28 09:12:45 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-08-28 09:12:45 +0200 |
commit | c58b9079179bc3c4e66baa13ed753c096571a01e (patch) | |
tree | 8f672f2bcf6bb278b266971a84f0acf9a38729a5 /lib | |
parent | 575a10ec2d4b5e1a6bb3e8def87b6be0d9272cc1 (diff) |
fix last modified cropping
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/Item.php | 4 |
1 files 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; } } |