summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-05 12:17:33 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-05 12:17:33 +0200
commit378fa2bc86fd5df095b2d05855bd54a341dba1b0 (patch)
treef1a99c7216b83a76a9e52bb847b8ed20e79e7e06 /apps/files_external/lib
parent55cde0e5aa7118ed916fc76e21c72c5081cc81ae (diff)
downloadnextcloud-server-378fa2bc86fd5df095b2d05855bd54a341dba1b0.tar.gz
nextcloud-server-378fa2bc86fd5df095b2d05855bd54a341dba1b0.zip
check if caview really exists
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/webdav.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php
index 097ff3c0162..32dd26ae6c3 100644
--- a/apps/files_external/lib/webdav.php
+++ b/apps/files_external/lib/webdav.php
@@ -36,8 +36,10 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
$this->root.='/';
}
- $caview = \OCP\Files::getStorage('files_external');
- $capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("");
+ $capath = '';
+ if($caview = \OCP\Files::getStorage('files_external')) {
+ $capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("");
+ }
$settings = array(
'baseUri' => $this->createBaseUri(),
'userName' => $this->user,