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/Tag2Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SemanticScuttle/Service/Tag2Tag.php') diff --git a/src/SemanticScuttle/Service/Tag2Tag.php b/src/SemanticScuttle/Service/Tag2Tag.php index d404bb5..2db1ee4 100644 --- a/src/SemanticScuttle/Service/Tag2Tag.php +++ b/src/SemanticScuttle/Service/Tag2Tag.php @@ -370,7 +370,7 @@ class SemanticScuttle_Service_Tag2Tag extends SemanticScuttle_DbService //echo($query."
\n"); $dbres = $this->db->sql_query($query); - $hasTags = $this->db->sql_numrows($dbres) > 0; + $hasTags = $this->db->sql_fetchrow($dbres) != false; $this->db->sql_freeresult($dbres); return $hasTags; } -- cgit v1.2.3-54-g00ecf