diff options
Diffstat (limited to 'lib/Db/Item.php')
-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; } } |