]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Fixes prefix for member language strings, minor improvements
[mailer.git] / inc / mysql-manager.php
index 460145e7bb57b12374d97676a318940bb9c02e61..885b670ce1f68ded7d59f5e24be56f7ee4a0ee77 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -1023,7 +1021,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
        //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',points='.$points);
        if (fetchUserData($userid)) {
                // Determine wether the user has some mails to click before he/she gets the points
-               $locked = ((getUserData('ref_payout') > 0) && (!isDirectPaymentEnabled()));
+               $locked = ifUserPointsLocked($userid);
 
                // Default is 'normal' points
                $data = 'points';
@@ -1095,7 +1093,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
 
                                // Send email
                                sendEmail($userid, '{--THANX_REFERAL_ONE_SUBJECT--}', $message);
-                       } elseif (($sendNotify === true) && (getUserData('refid') == '0') && ($locked === false) && ($add_mode == 'direct')) {
+                       } elseif (($sendNotify === true) && (!isValidUserId(getUserData('refid'))) && ($locked === false) && ($add_mode == 'direct')) {
                                // Prepare content
                                $content = array(
                                        'reason' => '{--REASON_DIRECT_PAYMENT--}',