diff options
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 0e5ffe51728..dccd10d6021 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -150,9 +150,15 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { // get target node for proper path conversion if ($this->server->tree->nodeExists($destinationPath)) { $destinationNode = $this->server->tree->getNodeForPath($destinationPath); + if (!$destinationNode instanceof Node) { + return false; + } $path = $destinationNode->getPath(); } else { $parentNode = $this->server->tree->getNodeForPath(dirname($destinationPath)); + if (!$parentNode instanceof Node) { + return false; + } $path = $parentNode->getPath(); } |