]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/refback_functions.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / libs / refback_functions.php
index bc50b0a209b05e796590afba57f9f880e1625eb4..69f7fe73ca8b7c1f71dee5aca3284d8aa9349969 100644 (file)
@@ -163,7 +163,7 @@ ORDER BY
 
        // Entries found?
        //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>):numRows=".SQL_NUMROWS($result)."<br />");
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // Add all
                while ($content = SQL_FETCHARRAY($result)) {
                        //* DEBUG: */ print(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__."</font>):rid={$rid},level={$level},userid={$content['userid']}<br />");
@@ -308,7 +308,7 @@ ORDER BY
                array(bigintval($userid), bigintval($level)), __FUNCTION__, __LINE__);
 
        // Are there some entries?
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // Fetch all entries
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add row