From 253cac4cc11ca1d669e846f86a9b626aa0419deb Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 3 Nov 2014 21:14:45 +0100 Subject: [PATCH] Fixed deleting tags that are marked as banned --- src/Dao/TagDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()