A lot has been rewritten, ext-teams added, ext-forced continued:
[mailer.git] / inc / modules / member / what-wernis.php
index d53b7e34ffc24c479712875a0f4ea63094606b01..60809e91dd54a4150c5e5ff0a3c7ff2bf4e907fe 100644 (file)
@@ -72,7 +72,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
                setGetRequestParameter('mode', 'list');
 
                // And load all rows!
-               $result = SQL_QUERY_ESC("SELECT `id`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
+               $result = SQL_QUERY_ESC("SELECT `id`,`wernis_account`,`wernis_amount`,`wernis_timestamp`,`wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
                        array(getMemberId()), __FILE__, __LINE__);
 
                // Load all rows
@@ -206,7 +206,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                        // All is fine here so do the withdraw
                                        $success = WERNIS_EXECUTE_PAYOUT(postRequestParameter('wernis_userid'), postRequestParameter('amount'));
                                        if ($success === true) {
-                                               // Sub points
+                                               // Sub points and ignore return status
                                                subtractPoints('wernis_payout', getMemberId(), postRequestParameter('amount'));
 
                                                // Update WDS66 id