Fixed deleting tags that are marked as banned

This commit is contained in:
Marcin Kurczewski 2014-11-03 21:14:45 +01:00
parent d07745a6cd
commit 253cac4cc1

View file

@ -71,7 +71,7 @@ class TagDao extends AbstractDao implements ICrudDao
public function deleteUnused() public function deleteUnused()
{ {
$this->deleteBy('usages', 0); $this->pdo->deleteFrom($this->tableName)->where('usages = 0 AND banned != 1')->execute();
} }
public function export() public function export()