diff options
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Files/Sharing/FilesDropPlugin.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php index b364c4ebbfc..69328d42272 100644 --- a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php +++ b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php @@ -62,14 +62,12 @@ class FilesDropPlugin extends ServerPlugin { $path = array_pop($path); // Extract the attributes for the file request + $isFileRequest = false; $attributes = $this->share->getAttributes(); - if ($attributes === null) { - return; - } - - // Prepare file request $nickName = $request->getHeader('X-NC-Nickname'); - $isFileRequest = $attributes->getAttribute('fileRequest', 'enabled') === true; + if ($attributes !== null) { + $isFileRequest = $attributes->getAttribute('fileRequest', 'enabled') === true; + } // We need a valid nickname for file requests if ($isFileRequest && ($nickName == null || trim($nickName) === '')) { |