diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-21 18:07:56 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-21 18:07:56 +0200 |
commit | da9107fe699e6e5dfe0df8921484178fee844f4c (patch) | |
tree | 628d5118d1d4eba30025d33348a37b04d8afbffc /lib/filecache.php | |
parent | 7b4cb44af8016893113c0dd4cd6bdab269c98b0e (diff) | |
download | nextcloud-server-da9107fe699e6e5dfe0df8921484178fee844f4c.tar.gz nextcloud-server-da9107fe699e6e5dfe0df8921484178fee844f4c.zip |
fix saved file size for uploaded files
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index 1d22bb34dfc..da9baa020a2 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -91,14 +91,14 @@ class OC_FileCache{ $data=array_merge(OC_FileCache::$savedData[$path],$data); unset(OC_FileCache::$savedData[$path]); } - if(!isset($data['size']) or !isset($data['mtime'])){//save incomplete data for the next time we write it - self::$savedData[$path]=$data; - return; - } if($id!=-1){ self::update($id,$data); return; } + if(!isset($data['size']) or !isset($data['mtime'])){//save incomplete data for the next time we write it + self::$savedData[$path]=$data; + return; + } if(!isset($data['encrypted'])){ $data['encrypted']=false; } |