]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
ext-admins must be checked here, first admin had never 'allow'
[mailer.git] / inc / libs / rallye_functions.php
index 3e3bbadb9f9488442f00dee8cde3dc5e41b56b24..25687437bbe52f46c72c940dddb314e247ee224d 100644 (file)
@@ -174,7 +174,7 @@ WHERE
 function addReferralRallyePrices ($rallye, $mode = 'email') {
        // Output mode
        switch($mode) {
-               case 'email': $mode = chr(10);  break;
+               case 'email': $mode = PHP_EOL;  break;
                case 'html' : $mode = '<br />'; break;
        } // END - switch
 
@@ -195,7 +195,7 @@ ORDER BY
        if (!SQL_HASZERONUMS($result_prices)) {
                // Load prices
                $prices = '';
-               if ($mode == chr(10)) {
+               if ($mode == PHP_EOL) {
                        $prices = '{--RALLYE_MEMBER_PRICES_ADDED--}:' . $mode . '------------------------------' . $mode;
                } // END - if
 
@@ -217,7 +217,7 @@ ORDER BY
        }
 
        // Add last line for email mode
-       if ($mode == chr(10)) {
+       if ($mode == PHP_EOL) {
                $prices .= '------------------------------';
        } // END - if
 
@@ -966,7 +966,7 @@ function getReferralRallyeRefsCount ($currUserid, $oldReferralCount = '0') {
        } else {
                // Load current refs from database
                $result_ref = SQL_QUERY_ESC("SELECT
-       SUM(s.counter) AS cnt
+       SUM(s.counter) AS `cnt`
 FROM
        `{?_MYSQL_PREFIX?}_refsystem` AS s
 LEFT JOIN