From 2f9eb9d37a380ad149e6fce5b97fe3fb285035fc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 12 Jun 2024 00:13:07 -0700 Subject: Remove uses of sql_numrows --- src/SemanticScuttle/Service/TagStat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SemanticScuttle/Service/TagStat.php') 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) { -- cgit v1.2.3-54-g00ecf