]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
Don't use convertZeroToNull() here as it makes no sense
[mailer.git] / mailid.php
index fb180602e9ee55348b297e5995ee4db1a699d4a3..fc7e64ae70bf211417d9ffdfeb39de8d02d4036c 100644 (file)
@@ -149,8 +149,8 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                                array(bigintval($pool)), __FILE__, __LINE__);
                                                        if (SQL_NUMROWS($result) == 1) {
                                                                list($pay) = SQL_FETCHROW($result);
-                                                               $time      = getPaymentPoints($pay, 'time');
-                                                               $payment   = getPaymentPoints($pay, 'payment');
+                                                               $time      = getPaymentData($pay, 'time');
+                                                               $payment   = getPaymentData($pay, 'payment');
                                                                $isValid   = true;
                                                        } // END - if
 
@@ -208,7 +208,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                $errorCode = getCode('POSSIBLE_INVALID');
                                        }
                                } else {
-                                       $errorCode = getCode('ACCOUNT_' . getUserData('status'));
+                                       $errorCode = getCode('ACCOUNT_' . strtoupper(getUserData('status')));
                                }
                        } else {
                                $errorCode = getCode('USER_404');