From: Roland Häder Date: Sat, 22 Nov 2008 20:43:35 +0000 (+0000) Subject: Extension wernis now should fully work again, withdraw was broken X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3706a5dff0298ad8d4f9006e195537a0f47c438;p=mailer.git Extension wernis now should fully work again, withdraw was broken --- diff --git a/inc/databases.php b/inc/databases.php index 40403a2eed..8ed9085ae0 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "543"); +define('CURR_SVN_REVISION', "544"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); 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;