]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index 1fd3ed52705018c6d95498db6adf69fce8c75fb9..32ad71a64a2358e02f6e86707f69f7f6de6ad16e 100644 (file)
@@ -107,7 +107,7 @@ ORDER BY
        `id` ASC",
                array(bigintval(getRequestParameter('rid'))), __FILE__, __LINE__);
 
        `id` ASC",
                array(bigintval(getRequestParameter('rid'))), __FILE__, __LINE__);
 
-               if (SQL_NUMROWS($result) > 0) {
+               if (!SQL_HASZERONUMS($result)) {
                        // List refs now
                        // Free memory
                        SQL_FREERESULT($result);
                        // List refs now
                        // Free memory
                        SQL_FREERESULT($result);
@@ -129,7 +129,7 @@ FROM
 ORDER BY
        `id` ASC", __FILE__, __LINE__);
 
 ORDER BY
        `id` ASC", __FILE__, __LINE__);
 
-       if (SQL_NUMROWS($result_main) > 0) {
+       if (!SQL_HASZERONUMS($result_main)) {
                // At least one sponsor found!
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {
                // At least one sponsor found!
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result_main)) {