summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/TagStat.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/Service/TagStat.php')
-rw-r--r--src/SemanticScuttle/Service/TagStat.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SemanticScuttle/Service/TagStat.php b/src/SemanticScuttle/Service/TagStat.php
index af8d110..23a7e4c 100644
--- a/src/SemanticScuttle/Service/TagStat.php
+++ b/src/SemanticScuttle/Service/TagStat.php
@@ -116,9 +116,9 @@ class SemanticScuttle_Service_TagStat extends SemanticScuttle_DbService
$query.= " AND uId = '".$uId."'";
$dbres = $this->db->sql_query($query);
- $rows = $this->db->sql_numrows($dbres);
+ $rows = $this->db->sql_fetchrow($dbres);
$this->db->sql_freeresult($dbres);
- return $rows > 0;
+ return $rows != false;
}
function createStat($tag1, $relationType, $uId) {