]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/rallye_functions.php
Continued:
[mailer.git] / inc / libs / rallye_functions.php
index 8a6ef504c3104fe78b8af54a63db7ab0bc107c8b..7135f90ac2f7ed924c3dc1397f2c5bd22527827e 100644 (file)
@@ -610,7 +610,7 @@ function getReferralRallyeUserDataFromArray ($userIds) {
 
        // Load users
        $result = sqlQueryEscaped("SELECT
-       `userid`, `gender`, `surname`, `family`, `email`
+       `userid`, `sex`, `surname`, `family`, `email`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -626,8 +626,8 @@ LIMIT %s",
                ), __FUNCTION__, __LINE__);
        while ($content = sqlFetchArray($result)) {
                // Construct the message masked and add it
-               $ret .= sprintf("{%%pipe,translateGender=%s%} %s %s (%s) - %s\n",
-                       $content['gender'],
+               $ret .= sprintf("{%%pipe,translateSex=%s%} %s %s (%s) - %s\n",
+                       $content['sex'],
                        $content['surname'],
                        $content['family'],
                        $content['email'],
@@ -642,11 +642,11 @@ LIMIT %s",
 //
 function getArrayFromReferralRallyePrices ($rallye) {
        // Init multi array
-       $prices = array(
+       $prices = [
                'level'  => [],
                'points' => [],
-               'info'   => []
-       );
+               'info'   => [],
+       ];
 
        // Load prices
        $result = sqlQueryEscaped("SELECT