summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-03 20:43:13 +0100
committerGitHub <noreply@github.com>2016-11-03 20:43:13 +0100
commit8bf57462ea52cc2f4300b6fa097ae23100882c83 (patch)
tree458514baa66bbc105d327a5c24120fa7dfcbe9e3
parentf6ff624e3df023529a0a53cfb232178a973aef65 (diff)
parent7be62d083e853ce2034de711fd037d5ce9ceb9e4 (diff)
downloadnextcloud-server-8bf57462ea52cc2f4300b6fa097ae23100882c83.tar.gz
nextcloud-server-8bf57462ea52cc2f4300b6fa097ae23100882c83.zip
Merge pull request #2002 from nextcloud/propagate-mtime-iont
explicitly cast mtime to int in propagation
-rw-r--r--lib/private/Files/Cache/Propagator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php
index 48122ae5529..d597a479f54 100644
--- a/lib/private/Files/Cache/Propagator.php
+++ b/lib/private/Files/Cache/Propagator.php
@@ -80,7 +80,7 @@ class Propagator implements IPropagator {
}, $parentHashes);
$builder->update('filecache')
- ->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter($time, IQueryBuilder::PARAM_INT) . ')'))
+ ->set('mtime', $builder->createFunction('GREATEST(`mtime`, ' . $builder->createNamedParameter((int)$time, IQueryBuilder::PARAM_INT) . ')'))
->set('etag', $builder->createNamedParameter($etag, IQueryBuilder::PARAM_STR))
->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
->andWhere($builder->expr()->in('path_hash', $hashParams));