From d29c2b016921176a10d348e26c3f045431ff7bc0 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sat, 23 Feb 2013 16:00:50 -0500 Subject: [PATCH] Reuse $freeSpace variable --- lib/connector/sabre/quotaplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php index 233159e364..c80a33d04b 100644 --- a/lib/connector/sabre/quotaplugin.php +++ b/lib/connector/sabre/quotaplugin.php @@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin { } list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri); $freeSpace = \OC\Files\Filesystem::free_space($parentUri); - if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > \OC\Files\Filesystem::free_space($parentUri)) { + if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > $freeSpace) { throw new Sabre_DAV_Exception_InsufficientStorage(); } }