diff options
author | Christian Weiske <cweiske@cweiske.de> | 2013-03-21 06:49:37 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2013-03-21 06:49:37 +0100 |
commit | 26352761d3d1920390b0ba6d133543f3b83674a5 (patch) | |
tree | d4915554f1b2c2840f6e0a22d4de40dedbf48fda /src | |
parent | 20e3b5ebd785793d154c21b8d4499aff68206d65 (diff) | |
download | semanticscuttle-26352761d3d1920390b0ba6d133543f3b83674a5.tar.gz semanticscuttle-26352761d3d1920390b0ba6d133543f3b83674a5.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark2Tag.php | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |