From 26352761d3d1920390b0ba6d133543f3b83674a5 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 21 Mar 2013 06:49:37 +0100 Subject: The hasTag was always returning false, which probably is a bug. Fixed it and added a test to catch it. Thanks for Ricardo Soares de Lima for the first patch version --- src/SemanticScuttle/Service/Bookmark2Tag.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/SemanticScuttle/Service/Bookmark2Tag.php b/src/SemanticScuttle/Service/Bookmark2Tag.php index 49517b0..a01b5d7 100644 --- a/src/SemanticScuttle/Service/Bookmark2Tag.php +++ b/src/SemanticScuttle/Service/Bookmark2Tag.php @@ -626,12 +626,13 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService return false; } + $output = false; if ($row = $this->db->sql_fetchrow($dbresult)) { if ($row['tCount'] > 0) { $output = true; } } - $output = false; + $this->db->sql_freeresult($dbresult); return $output; } -- cgit v1.2.3