Removal fixes

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-08-04 08:09:21 +02:00
parent 8e89ecca56
commit 8e920260a8
8 changed files with 119 additions and 25 deletions

View File

@ -8,7 +8,7 @@ class ModelAuditRemoval extends Model {
if($page_len > 0) { $limit = " LIMIT " . (int)$from . ", " . (int)$page_len; }
$query = $this->db->query("SELECT * FROM " . TABLE_DELETED . " WHERE deleted=0 ORDER BY date1 DESC $limit");
$query = $this->db->query("SELECT * FROM " . TABLE_DELETED . " WHERE deleted=-1 ORDER BY date1 DESC $limit");
return $query->rows;
}