Fixed deleting tags that are marked as banned
This commit is contained in:
parent
d07745a6cd
commit
253cac4cc1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue