]> source.dussan.org Git - nextcloud-server.git/commitdiff
Undefined variable response when server is no nextcloud anymore 16825/head
authorJoas Schilling <coding@schilljs.com>
Tue, 20 Aug 2019 10:54:58 +0000 (12:54 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 21 Aug 2019 14:07:42 +0000 (14:07 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Files/Storage/DAV.php

index 52ed890056921cc2b658deed625356f327bbc54c..c4ebb0a44dc5d9a5cbc82f668238bef92c587448 100644 (file)
@@ -268,7 +268,7 @@ class DAV extends Common {
                                );
                                $this->statCache->set($path, $response);
                        } catch (ClientHttpException $e) {
-                               if ($e->getHttpStatus() === 404) {
+                               if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
                                        $this->statCache->clear($path . '/');
                                        $this->statCache->set($path, false);
                                        return false;