X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fwernis_functions.php;h=635b33885232ad16be439c04586abed6feb44b00;hb=e3706a5dff0298ad8d4f9006e195537a0f47c438;hp=db76a6474938c2dd600972ecaef8dec50e8292db;hpb=8ee39f4094e71546b3cf7e4edb97492be0ea349e;p=mailer.git diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index db76a64749..635b338852 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -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;