From d2fe6007890e6e3680e010e8bbc2346d8bcf7d04 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Wed, 27 Feb 2013 20:29:49 +0100
Subject: [PATCH] Trash: fix trash when default quota is used

---
 apps/files_trashbin/lib/trash.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index f0cfa49683..0b8472198d 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -102,7 +102,7 @@ class Trashbin {
 		
 		// get available disk space for user
 		$quota = \OC_Preferences::getValue($user, 'files', 'quota');
-		if ( $quota === null ) {
+		if ( $quota === null || $quota === 'default') {
 			$quota = \OC_Appconfig::getValue('files', 'default_quota');
 		}
 		if ( $quota === null ) {
-- 
GitLab