diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-26 17:52:06 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-26 17:52:06 -0500 |
commit | 25cf18f61489860b735d5ac8951a8671bfa23bd2 (patch) | |
tree | c4e20f6be0d8499bf9d132f9fc8d5b518b24862b /apps/files_external | |
parent | f3a8bf9260b2808d98e97759b25b20bc44987c40 (diff) | |
download | nextcloud-server-25cf18f61489860b735d5ac8951a8671bfa23bd2.tar.gz nextcloud-server-25cf18f61489860b735d5ac8951a8671bfa23bd2.zip |
Fix undefined root parameter in Dropbox storage
Diffstat (limited to 'apps/files_external')
-rwxr-xr-x | apps/files_external/lib/dropbox.php | 4 |
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'); |