summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-26 17:52:06 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-26 17:52:06 -0500
commit25cf18f61489860b735d5ac8951a8671bfa23bd2 (patch)
treec4e20f6be0d8499bf9d132f9fc8d5b518b24862b /apps/files_external
parentf3a8bf9260b2808d98e97759b25b20bc44987c40 (diff)
downloadnextcloud-server-25cf18f61489860b735d5ac8951a8671bfa23bd2.tar.gz
nextcloud-server-25cf18f61489860b735d5ac8951a8671bfa23bd2.zip
Fix undefined root parameter in Dropbox storage
Diffstat (limited to 'apps/files_external')
-rwxr-xr-xapps/files_external/lib/dropbox.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/dropbox.php b/apps/files_external/lib/dropbox.php
index 11644e4a2c8..cb04e557f8a 100755
--- a/apps/files_external/lib/dropbox.php
+++ b/apps/files_external/lib/dropbox.php
@@ -40,8 +40,8 @@ class Dropbox extends \OC\Files\Storage\Common {
&& isset($params['token'])
&& isset($params['token_secret'])
) {
- $this->id = 'dropbox::'.$params['app_key'] . $params['token']. '/' . $params['root'];
- $this->root=isset($params['root'])?$params['root']:'';
+ $this->root = isset($params['root']) ? $params['root'] : '';
+ $this->id = 'dropbox::'.$params['app_key'] . $params['token']. '/' . $this->root;
$oauth = new \Dropbox_OAuth_Curl($params['app_key'], $params['app_secret']);
$oauth->setToken($params['token'], $params['token_secret']);
$this->dropbox = new \Dropbox_API($oauth, 'dropbox');