diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-23 12:23:08 -0700 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-23 12:23:08 -0700 |
commit | 7ad38535e51812e08042e46bd550aa9cc5781955 (patch) | |
tree | e31d8023eb5b092027f9a7427413647f99d3be46 /lib/connector | |
parent | f7422ad132e68c901c5658bbba1bffa626efaa37 (diff) | |
parent | c904504365b6faa3113c19205e5216dcb81ebb68 (diff) | |
download | nextcloud-server-7ad38535e51812e08042e46bd550aa9cc5781955.tar.gz nextcloud-server-7ad38535e51812e08042e46bd550aa9cc5781955.zip |
Merge pull request #3392 from owncloud/googledrive
Switch to using Google Drive SDK, closes #2047
Diffstat (limited to 'lib/connector')
-rw-r--r-- | lib/connector/sabre/file.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php index 438d9871c22..06ab73e3e4d 100644 --- a/lib/connector/sabre/file.php +++ b/lib/connector/sabre/file.php @@ -115,8 +115,11 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D */ public function getSize() { $this->getFileinfoCache(); - return $this->fileinfo_cache['size']; - + if ($this->fileinfo_cache['size'] > -1) { + return $this->fileinfo_cache['size']; + } else { + return null; + } } /** |