From 2c7e4ac3eb40dce2ea312533d8e50bb90f48ad8d Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 16 Jan 2014 13:01:10 +0100 Subject: [PATCH] and another fix --- webui/controller/message/notspam.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/controller/message/notspam.php b/webui/controller/message/notspam.php index 33fe581c..03fc2be8 100644 --- a/webui/controller/message/notspam.php +++ b/webui/controller/message/notspam.php @@ -33,7 +33,9 @@ class ControllerMessageNotSpam extends Controller { AUDIT(ACTION_NOT_SPAM, '', '', $this->data['id'], ''); - $this->model_search_message->not_spam($this->data['id']); + if(DEFAULT_RETENTION > 30) { + $this->model_search_message->not_spam($this->data['id']); + } }