diff options
author | Tom Willemse | 2024-06-12 00:13:07 -0700 |
---|---|---|
committer | Tom Willemse | 2024-06-12 00:13:07 -0700 |
commit | 2f9eb9d37a380ad149e6fce5b97fe3fb285035fc (patch) | |
tree | 9b330f41262f755d10bea2a80ca54506e870dc56 /src/SemanticScuttle | |
parent | 2158275ec50eebde957d5a17fac32dc324007ee4 (diff) | |
download | scuttle-2f9eb9d37a380ad149e6fce5b97fe3fb285035fc.tar.gz scuttle-2f9eb9d37a380ad149e6fce5b97fe3fb285035fc.zip |
Remove uses of sql_numrowspico-theme
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r-- | src/SemanticScuttle/Service/Tag2Tag.php | 2 | ||||
-rw-r--r-- | src/SemanticScuttle/Service/TagStat.php | 4 |
2 files changed, 3 insertions, 3 deletions
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."<br>\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; } 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) { |