From e3706a5dff0298ad8d4f9006e195537a0f47c438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 22 Nov 2008 20:43:35 +0000 Subject: [PATCH] Extension wernis now should fully work again, withdraw was broken --- inc/databases.php | 2 +- inc/libs/wernis_functions.php | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) 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; -- 2.30.2