From 8cb0e3d1a8f09cc83cb208a010da926d90540b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=EF=BF=BD=EF=BF=BD?= Date: Fri, 28 Nov 2014 21:58:42 +0000 Subject: [PATCH] don't check disk quotas if they're disabled --- bureau/class/m_quota.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_quota.php b/bureau/class/m_quota.php index ac7ab96d..2b5f38f0 100644 --- a/bureau/class/m_quota.php +++ b/bureau/class/m_quota.php @@ -172,7 +172,7 @@ class m_quota { } reset($this->disk); - if (!empty ($this->disk)) { // Check if there are some disk quota to check + if ($this->disk_quota_enable && !empty ($this->disk)) { // Check if there are some disk quota to check // Look if there are some cached value $disk_cached = $mem->session_tempo_params_get('quota_cache_disk');