]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor.php
Typo fixed :-(
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index 7a32072205f7bf817be500aa38423e4acea838c1..32ad71a64a2358e02f6e86707f69f7f6de6ad16e 100644 (file)
@@ -107,7 +107,7 @@ ORDER BY
        `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);
@@ -129,7 +129,7 @@ FROM
 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)) {
@@ -143,7 +143,7 @@ ORDER BY
                                'status'          => $content['status'],
                                'sponsor_created' => generateDateTime($content['sponsor_created'], 2),
                                'last_online'     => generateDateTime($content['last_online'], 2),
-                               'points'          => translateComma($content['points_amount'] - $content['points_used']),
+                               'points'          => ($content['points_amount'] - $content['points_used']),
                                'remote_addr'     => $content['remote_addr'],
                        );