Fixes for sql_patches removal vs. password reset of admin
[mailer.git] / inc / modules / member / what-wernis.php
index f6ef2687f6a853dcd7eb093734a2445d608589dc..4fc5af8c21563ed07a19f4d48be625ef336cc4b6 100644 (file)
@@ -116,6 +116,9 @@ if ((!isset($_GET['mode'])) || ($_GET['mode'] == "choose")) {
        $points = explode(".", $points);
        $points = bigintval($points[0]);
 
+       // Remove the registration fee
+       $points = $points - $_CONFIG['points_register'];
+
        // Is this enougth for a payout?
        if ($points < $_CONFIG['wernis_min_payout']) {
                // No, then abort here