From df2d7aa644d0656a361bed34479faf755da3ce98 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 16 Jan 2014 12:59:56 +0100 Subject: [PATCH] added a safeguard to the "not spam" feature --- webui/model/search/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 747ff493..8c48482c 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -713,7 +713,7 @@ class ModelSearchMessage extends Model { public function is_message_spam($id = 0) { $spam = 0; - if($id > 0) { + if($id > 0 && DEFAULT_RETENTION > 30) { $query = $this->db->query("SELECT spam FROM " . TABLE_META . " WHERE id=?", array($id)); if(isset($query->row['spam'])) { $spam = $query->row['spam']; }