summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-23 12:23:08 -0700
committerBart Visscher <bartv@thisnet.nl>2013-07-23 12:23:08 -0700
commit7ad38535e51812e08042e46bd550aa9cc5781955 (patch)
treee31d8023eb5b092027f9a7427413647f99d3be46 /lib/connector
parentf7422ad132e68c901c5658bbba1bffa626efaa37 (diff)
parentc904504365b6faa3113c19205e5216dcb81ebb68 (diff)
downloadnextcloud-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.php7
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;
+ }
}
/**