mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:10:12 +01:00
added a safeguard to the "not spam" feature
This commit is contained in:
parent
4b08cc3f96
commit
df2d7aa644
@ -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']; }
|
||||
|
Loading…
Reference in New Issue
Block a user