From ec5e87bb6d9e209a9b0e00b3b83465114467f448 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Thu, 13 Aug 2015 13:35:55 -0400 Subject: [PATCH] Fix error on differing trailing spacing for tags --- application/models/Table/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Table/Tag.php b/application/models/Table/Tag.php index 421632a4a8..c4f845cf3a 100644 --- a/application/models/Table/Tag.php +++ b/application/models/Table/Tag.php @@ -17,7 +17,7 @@ public function findOrNew($name) $sql = " SELECT tags.* FROM {$db->Tag} tags - WHERE tags.name LIKE ? + WHERE tags.name = ? LIMIT 1"; $tag = $this->fetchObject($sql, array($name));