diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-20 20:34:17 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-20 20:34:17 +0200 |
commit | d84d548618651c0a66bd2696d6547b33ca6b8e87 (patch) | |
tree | e79850bd161e5cf98c20e0673d3b9419fe7990e7 /lib/files | |
parent | c8f9efeb94b136ed0906cefe946629a091796ff2 (diff) | |
download | nextcloud-server-d84d548618651c0a66bd2696d6547b33ca6b8e87.tar.gz nextcloud-server-d84d548618651c0a66bd2696d6547b33ca6b8e87.zip |
when storing back the data field 'encrypted' it is necessary to cast the boolean to an integer to make pg happy
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/cache/scanner.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/files/cache/scanner.php b/lib/files/cache/scanner.php index fdbce0d51fe..d296c606865 100644 --- a/lib/files/cache/scanner.php +++ b/lib/files/cache/scanner.php @@ -121,6 +121,8 @@ class Scanner extends BasicEmitter { } $parentCacheData = $this->cache->get($parent); $parentCacheData['etag'] = $this->storage->getETag($parent); + // the boolean to int conversion is necessary to make pg happy + $parentCacheData['encrypted'] = $parentCacheData['encrypted'] ? 1 : 0; $this->cache->put($parent, $parentCacheData); } } |