From ca9ae02b0eb9887bc5b423f6a060b38783591644 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 21 Jan 2018 13:39:17 +0100 Subject: [PATCH] Remove erroneous over quota message when over min quota but not at max quota yet. Follow-up to #5 --- weave_utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave_utils.php b/weave_utils.php index 3868b84..75250e2 100644 --- a/weave_utils.php +++ b/weave_utils.php @@ -269,7 +269,7 @@ if ((defined("MINQUOTA") && MINQUOTA) && (defined("MAXQUOTA") && MAXQUOTA)) { if ($quota_used > MINQUOTA && $quota_used < MAXQUOTA) { - report_problem(WEAVE_ERROR_OVER_QUOTA, 400); + // We should send a header warning of nearing quota, here. log_quota("[!!] Over quota [MINQUOTA:MAXQUOTA]: ".$auth_user." @ ".$quota_used." KB."); if (defined(MINQUOTA_LOG_ERROR_OVER_QUOTA_ENABLE) && MINQUOTA_LOG_ERROR_OVER_QUOTA_ENABLE) { log_error(" MinQUOTA exceeding: ".$quota_used." KB.");