summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2021-01-15 21:47:18 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-01-17 17:56:37 +0100
commitc67feb8d8d388e3b16603b2253ad7f86d8d72fd9 (patch)
tree4c2e0a0a352f186d95b9d86171b24595da159cbe /lib/Controller
parent4caa9d996df832fc43bd3fa71ba5d858a31cf2b5 (diff)
fix TypeError caused by type conversion in controller
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemApiController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ItemApiController.php b/lib/Controller/ItemApiController.php
index c958324af..af36b87f0 100644
--- a/lib/Controller/ItemApiController.php
+++ b/lib/Controller/ItemApiController.php
@@ -93,14 +93,14 @@ class ItemApiController extends ApiController
{
// needs to be turned into a millisecond timestamp to work properly
if (strlen((string) $lastModified) <= 10) {
- $paddedLastModified = $lastModified . '000000';
+ $paddedLastModified = $lastModified * 1000000;
} else {
$paddedLastModified = $lastModified;
}
$items = $this->oldItemService->findAllNew(
$id,
$type,
- $paddedLastModified,
+ (int) $paddedLastModified,
true,
$this->getUserId()
);