Typo 'referral'->'referal' fixed, more 'empty version' fixed
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index a3e1eeb8700de533cf75d7c458079fcbdbbb64e4..bd1f77f5060c45d90c026fa18ea49201a11fbeb9 100644 (file)
@@ -136,18 +136,18 @@ LIMIT 1",
 FROM `{?_MYSQL_PREFIX?}_sponsor_data`
 WHERE `id`='%s' LIMIT 1",
                                        array(bigintval($content['refid'])), __FILE__, __LINE__);
-                                       $REFERRAL = SQL_FETCHARRAY($result);
+                                       $REFERAL = SQL_FETCHARRAY($result);
 
                                        // Send warnings out?
-                                       if ($REFERRAL['receive_warnings'] == 'Y') {
+                                       if ($REFERAL['receive_warnings'] == 'Y') {
                                                // Translate some data
-                                               $REFERRAL['points']     = translateComma($REFERRAL['points']);
-                                               $REFERRAL['ref_points'] = translateComma(getConfig('sponsor_ref_points'));
-                                               $REFERRAL['gender']     = translateGender($REFERRAL['gender']);
+                                               $REFERAL['points']     = translateComma($REFERAL['points']);
+                                               $REFERAL['ref_points'] = translateComma(getConfig('sponsor_ref_points'));
+                                               $REFERAL['gender']     = translateGender($REFERAL['gender']);
 
                                                // Send notification to referal
-                                               $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERRAL);
-                                               sendEmail($REFERRAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG);
+                                               $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
+                                               sendEmail($REFERAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG);
                                        }
 
                                        // Free memory