]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
Extension wernis now should fully work again, withdraw was broken
[mailer.git] / inc / libs / wernis_functions.php
index db76a6474938c2dd600972ecaef8dec50e8292db..635b33885232ad16be439c04586abed6feb44b00 100644 (file)
@@ -215,13 +215,15 @@ function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
        global $_CONFIG;
 
        // Is the sponsor extension installed?
-       if (!EXT_IS_ACTIVE("sponsor")) {
-               // No, abort here
-               return false;
-       } elseif (!IS_SPONSOR()) {
-               // No sponsor, not allowed to withdraw!
-               return false;
-       }
+       if ($_CONFIG['wernis_withdraw_active'] == "N") {
+               if (!EXT_IS_ACTIVE("sponsor")) {
+                       // No, abort here
+                       return false;
+               } elseif (!IS_SPONSOR()) {
+                       // No sponsor, not allowed to withdraw!
+                       return false;
+               }
+       } // END - if
 
        // Default is failed attempt
        $result = false;