]> git.mxchange.org Git - mailer.git/commitdiff
Fixes for 'Can't use function return value in write context in /foo/bar.php'
authorRoland Häder <roland@mxchange.org>
Wed, 17 Dec 2008 21:27:36 +0000 (21:27 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Dec 2008 21:27:36 +0000 (21:27 +0000)
inc/databases.php
inc/libs/bonus_functions.php
inc/libs/rallye_functions.php
inc/libs/yoomedia_functions.php
inc/modules/admin.php
inc/modules/admin/what-config_bonus.php
inc/modules/admin/what-config_home.php
inc/modules/admin/what-list_user.php
inc/modules/member/what-points.php

index b3acb8ea115d0843bb0adb7133ff84818f429b2e..7a56ff898ce8b094859df3bee52f630ee0fae075 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "642");
+define('CURR_SVN_REVISION', "643");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index a4fdf06ce5903c6ba775d2f7df7c24758a7727c2..4e1ba34bd64130805a8affad8528d15f5ae09c4d 100644 (file)
@@ -199,7 +199,7 @@ function BONUS_POINTS_HANDLER ($MODE) {
                UPDATE_CONFIG(array('bonus_mode'), array("JACKPOT"));
 
                // Update configuration
-               getConfig('bonus_mode') = "JACKPOT";
+               $_CONFIG['bonus_mode'] = "JACKPOT";
        } // END - if
 
        if ($MODE == "login_bonus") {
index ec2af80dbdce40a199e2f225c02e97b252b98601..b3da615f011855d1d912a81707bd71a34b910b61 100644 (file)
@@ -519,7 +519,7 @@ function RALLYE_LOAD_USERS_ARRAY($rallye)
        global $_CONFIG;
 
        // Fix zero points to 0.00000
-       if (getConfig('ref_payout') == "0") getConfig('ref_payout') = "0.00000";
+       if (getConfig('ref_payout') == "0") $_CONFIG['ref_payout'] = "0.00000";
 
        // Init multi array
        $users = array(
index 22a0fb9c6b63581017352520582112903acf56f4..327d83bc8ef5cfab9db34f1cb644db387a69007f 100644 (file)
@@ -51,11 +51,11 @@ function YOOMEDIA_TEST_CONFIG ($data) {
        $_CONFIG = merge_array($_CONFIG, $data);
 
        // Temporary allow maximum
-       getConfig('yoomedia_tm_max_reload')    = 1000;
-       getConfig('yoomedia_tm_min_wait')      = 0;
-       getConfig('yoomedia_tm_clicks_remain') = 10;
-       getConfig('yoomedia_tm_min_pay')       = 0;
-       getConfig('yoomedia_erotic_allowed')   = 1;
+       $_CONFIG['yoomedia_tm_max_reload']    = 1000;
+       $_CONFIG['yoomedia_tm_min_wait']      = 0;
+       $_CONFIG['yoomedia_tm_clicks_remain'] = 10;
+       $_CONFIG['yoomedia_tm_min_pay']       = 0;
+       $_CONFIG['yoomedia_erotic_allowed']   = 1;
 
        // Query the API with a test request without couting it
        // If zero reply comes back the data is invalid!
index c144a4dc6adba17ccf7b12388c8f03f996c27b23..517219f898a7afb431ffb754e7c732651e961d1a 100644 (file)
@@ -353,7 +353,7 @@ if (!isBooleanConstantAndTrue('admin_registered')) {
                        }
 
                        // When type of admin menu is not set fallback to old menu system
-                       if (getConfig('admin_menu') == null) getConfig('admin_menu') = "OLD";
+                       if (getConfig('admin_menu') == null) $_CONFIG['admin_menu'] = "OLD";
 
                        // Check for version and switch between old menu system and new "intelligent menu system"
                        if ((ADMIN_CHECK_MENU_MODE() == "NEW") && (FILE_READABLE(PATH."inc/modules/admin/lasys-inc.php"))) {
index 63e933d9f336e95c7776bfc251147d247e1ef8f0..11bbbd58d7cab3e97e21be43815b92795b21911c 100644 (file)
@@ -64,7 +64,7 @@ if (isset($_POST['ok'])) {
        ADMIN_SAVE_SETTINGS($_POST);
 
        // Remember new settings
-       getConfig('bonus_active')    = $_POST['bonus_active'];
+       $_CONFIG['bonus_active']    = $_POST['bonus_active'];
        $_CONFIG['bonus_en_notify'] = $_POST['bonus_en_notify'];
        $_CONFIG['bonus_di_notify'] = $_POST['bonus_di_notify'];
 } else {
index 1cf4abc2e8846e7316f272c87703344b11afd585..d9b8a9addee4e590b9f836ad34121b8a06681d70 100644 (file)
@@ -67,8 +67,7 @@ case "settings": // Settings related to the index page
 case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
        if (isset($_GET['home'])) {
                // Set new home
-               UPDATE_CONFIG("index_home", $_GET['home']);
-               getConfig('index_home') = SQL_ESCAPE($_GET['home']);
+               UPDATE_CONFIG("index_home", SQL_ESCAPE($_GET['home']));
        } // END - if
 
        // Load all what menu points
index 15990d4acc4275e76656fbf5e71a8e220dcf9f9f..00d2c1f7fadbd0dc37fcbf4426e3ae804d7b4a22 100644 (file)
@@ -223,7 +223,7 @@ LIMIT 1",
 
        // Calculate page count (0.5 fixes a bug with page count)
        if (getConfig('user_limit') == 0) {
-               getConfig('user_limit') = 100;
+               $_CONFIG['user_limit'] = 100;
                LOAD_TEMPLATE("admin_settings_saved", false, EXTENSION_WARNING_USER_LIMIT);
        } // END - if
 
index 642ae6b9cca06e05a3c18dced8376486f394850b..cdf9dcbd77bf0a704156e751dafa41fb10ff920f 100644 (file)
@@ -137,7 +137,7 @@ define('__TREF_VALUE' , $TREF);
 define('__TLOCK_VALUE', TRANSLATE_COMMA($TLOCK));
 
 // Fixes a bug when there is no bonus extension installed
-if (EXT_VERSION_IS_OLDER("bonus", "0.4.4")) getConfig('bonus_active') = "X";
+if (EXT_VERSION_IS_OLDER("bonus", "0.4.4")) $_CONFIG['bonus_active'] = "X";
 
 // Display login bonus and turbo-click bonus
 if ((GET_EXT_VERSION("bonus") >= "0.2.2") && (EXT_IS_ACTIVE("bonus")) && (getConfig('bonus_active') == "Y")) {