diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-03 16:36:46 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-03 16:36:46 +0300 |
commit | 7be62d083e853ce2034de711fd037d5ce9ceb9e4 (patch) | |
tree | 98f118840246f303208b2a38778065b7392c45f6 /lib/private/Files/Cache/Propagator.php | |
parent | ae5eb795932f6ee72f249cfe82cef813d80553c0 (diff) |
explicitly cast mtime to int
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Propagator.php')
-rw-r--r-- | lib/private/Files/Cache/Propagator.php | 2 |
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)); |