From 370005dd0c742d194842d830f9e6fda6da1a1283 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 4 Jul 2011 00:56:50 +0000 Subject: [PATCH] Possible fixes --- inc/mysql-manager.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 4eb508c5c4..5afeccf214 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -2014,9 +2014,9 @@ function updateLastActivity($userid) { // Get points data for given extension's name function getPointsDataArrayFromExtensionName ($ext_name) { // If we have cache, shortcut it here - if (isset($GLOBALS['cache_array']['points_data'])) { + if (isset($GLOBALS['cache_array']['points_data'][$ext_name])) { // Return it - return $GLOBALS['cache_array']['points_data']; + return $GLOBALS['cache_array']['points_data'][$ext_name]; } // END - if // Now checkout the entry in database table @@ -2030,21 +2030,21 @@ function getPointsDataArrayFromExtensionName ($ext_name) { // Add all remaining entries foreach ($pointsData as $key=>$value) { - $GLOBALS['cache_array']['points_data'][$key][$ext_name][$isLocked] = $value; + $GLOBALS['cache_array']['points_data'][$ext_name][$key] = $value; } // END - foreach } else { /* * Having no entry is not bad but it means that all points will go to * the general account which the user can let payout. */ - logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',isLocked=' . intval($isLocked) . ' - No entry found, switching to general points account.'); + logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - No entry found, switching to general points account.'); } // Free result SQL_FREERESULT($result); // Return it - return $GLOBALS['cache_array']['points_data']; + return $GLOBALS['cache_array']['points_data'][$ext_name]; } // Determines the right points column name for given extension and 'locked' -- 2.39.2