From 1cba5937e02787a8a7e8d5ff93b21b4b58f1c73e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 6 Dec 2008 17:49:34 +0000 Subject: [PATCH] Some more fixes --- inc/databases.php | 2 +- inc/extensions/ext-other.php | 2 +- inc/libs/beg_functions.php | 4 ++-- inc/libs/rallye_functions.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 715dd6791e..86ea2bcafe 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "605"); +define('CURR_SVN_REVISION', "606"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/extensions/ext-other.php b/inc/extensions/ext-other.php index 23454d623b..449247ea91 100644 --- a/inc/extensions/ext-other.php +++ b/inc/extensions/ext-other.php @@ -189,7 +189,7 @@ case "update": // Update an extension break; case "0.2.1": // SQL queries for v0.2.1 - $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` `min_age` TINYINT(3) UNSIGNED NOT NULL DEFAULT 16"; + $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `min_age` TINYINT(3) UNSIGNED NOT NULL DEFAULT 16"; // Update notes (these will be set as task text!) $UPDATE_NOTES = "Minimumalter ist nun konfigurierbar."; diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 583ec4c8a8..adfd3f5492 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -38,12 +38,12 @@ if (!defined('__SECURITY')) { } // Add points to user or begging rallye account -function BEG_ADD_POINTS($uid, $points) { +function BEG_ADD_POINTS ($uid, $points) { global $_CONFIG; // Set mode depending on how many mails the member has to confirm $locked = false; - if (($ref_payout > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true; + if (($_CONFIG['ref_payout'] > 0) && ($_CONFIG['allow_direct_pay'] == "N")) $locked = true; // Is begging rallye active? if ($_CONFIG['beg_rallye'] == "Y") { diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php index 960f78d67a..f7528f9063 100644 --- a/inc/libs/rallye_functions.php +++ b/inc/libs/rallye_functions.php @@ -542,7 +542,7 @@ FROM "._MYSQL_PREFIX."_user_points AS p LEFT JOIN "._MYSQL_PREFIX."_user_data AS d ON p.userid=d.userid WHERE d.status='CONFIRMED' AND d.max_mails > 0 AND d.mails_confirmed >= %s AND p.ref_depth=1 AND p.points > 0 AND d.userid=%s", - array($_CONFIG['ref_payout'], bigintval($uid)), __FILE__, __LINE__); + array($_CONFIG['ref_payout'], bigintval($uid)), __FILE__, __LINE__); list($refpoints) = SQL_FETCHROW($result_ref); SQL_FREERESULT($result_ref); -- 2.30.2