diff --git a/src/Dao/TagDao.php b/src/Dao/TagDao.php index 17f9d4d8..e89a53bc 100644 --- a/src/Dao/TagDao.php +++ b/src/Dao/TagDao.php @@ -71,7 +71,7 @@ class TagDao extends AbstractDao implements ICrudDao public function deleteUnused() { - $this->deleteBy('usages', 0); + $this->pdo->deleteFrom($this->tableName)->where('usages = 0 AND banned != 1')->execute(); } public function export()