From: Roland Häder Date: Tue, 23 Sep 2008 17:32:11 +0000 (+0000) Subject: add_mode in ADD_POINTS_REFSYSTEM() is now always lower-case X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=411ea6e81113b2c51f7e9ecad02d232db1732d86;p=mailer.git add_mode in ADD_POINTS_REFSYSTEM() is now always lower-case --- diff --git a/inc/databases.php b/inc/databases.php index f674ba049e..770290d634 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "387"); +define('CURR_SVN_REVISION', "388"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 5433a771ee..7e6d95f31a 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1098,10 +1098,12 @@ function GET_TOTAL_DATA($search, $tableName, $lookFor, $whereStatement="userid", * add_mode = Add points only to $uid or also refs? (WARNING! Changing "ref" to "direct" * for default value will cause no referral will get points ever!!!) */ -function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref") -{ +function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref") { global $DEPTH, $_CONFIG, $DATA; + // Convert mode to lower-case + $add_mode = strtolower($add_mode); + // Debug message //DEBUG_LOG(__FUNCTION__.": uid={$uid},points={$points}");