]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/payout_functions.php
Removed some column aliases as they make it harder to check which column was ment
[mailer.git] / inc / libs / payout_functions.php
index c9b05aadd683f534e7bc5fc69221d10e94bfc1ce..1447dda5b4bef0ca9aaf100b3d27897c07d46e9b 100644 (file)
@@ -45,14 +45,17 @@ function outputPayoutList ($points) {
        // Enougth points?
        if ($points > 0) {
                // Pay this out!
-               $result = SQL_QUERY_ESC("SELECT
-       `id`,`type`,`rate`,`min_points`
+               $result = SQL_QUERY_ESC('SELECT
+       `id`,
+       `type`,
+       `rate`,
+       `min_points`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 WHERE
        %s >= `min_points`
 ORDER BY
-       `type` ASC",
+       `type` ASC',
                        array($points), __FUNCTION__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
                        // Init output
@@ -66,22 +69,22 @@ ORDER BY
                                        $content['points'] = translateComma($points * $content['rate'] - 0.5);
 
                                        // Load row template
-                                       $OUT .= loadTemplate('member_payout_li', true, $content);
+                                       $OUT .= loadTemplate('member_payout_li', TRUE, $content);
                                } // END - if
                        } // END - while
 
                        // Load main template
-                       loadTemplate('member_payout_list', true, $OUT);
+                       loadTemplate('member_payout_list', TRUE, $OUT);
                } else {
                        // No payout types setup so far
-                       loadTemplate('admin_settings_unsaved', false, '{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
+                       loadTemplate('admin_settings_unsaved', FALSE, '{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
                }
 
                // Free memory
                SQL_FREERESULT($result);
        } else {
                // Points is empty
-               loadTemplate('admin_settings_unsaved', false, '{--MEMBER_PAYOUT_NO_POINTS_ENTERED--}');
+               loadTemplate('admin_settings_unsaved', FALSE, '{--MEMBER_PAYOUT_NO_POINTS_ENTERED--}');
        }
 }