X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fearning_functions.php;h=3f747490bfa1fd97e3aa5250c057ecf301444c42;hb=f2edf32502b2774dc17ef419a2e6a1c60e361c0a;hp=b0300dbcf0c790030776f9eb93215261d6e4a7c3;hpb=eefb72c90c4d30b82b9277acd42754dca014302b;p=mailer.git diff --git a/inc/libs/earning_functions.php b/inc/libs/earning_functions.php index b0300dbcf0..3f747490bf 100644 --- a/inc/libs/earning_functions.php +++ b/inc/libs/earning_functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -79,7 +79,7 @@ function generateMemberEarningDataTable ($earningProvider) { $filterData = runFilterChain('member_earning_table_data', $filterData); // Load the proper template and return it - $output = loadTemplate('member_earning_data_' . strtolower($filterData['earning_group']), true, $filterData); + $output = loadTemplate('member_earning_data_' . strtolower($filterData['earning_group']), TRUE, $filterData); // Return it return $output; @@ -116,7 +116,7 @@ function doMemberEarning ($earningId, $dailyAmount, $isActive = 'Y') { // Insert member earning entry function insertMemberEarning ($earningId, $dailyAmount, $isActive = 'Y') { // Insert the record - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_earning` (`earning_id`,`earning_userid`,`earning_daily_amount`,`earning_active`) VALUES(%s,%s,%s,'%s')", + SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_earning` (`earning_id`, `earning_userid`, `earning_daily_amount`, `earning_active`) VALUES(%s,%s,%s,'%s')", array( bigintval($earningId), getMemberId(), @@ -153,7 +153,7 @@ function updateMemberEarning ($earningId, $dailyAmount, $isActive = 'Y') { // Does the user cancel the earning? if ($isActive == 'N') { // Then update cancellation timestamp as well - $moreSql = ', `earning_cancelled`=NOW()'; + $moreSql = ',`earning_canceled`=NOW()'; } // END - if // Update database record @@ -173,11 +173,11 @@ LIMIT 1", array( getMemberId() ), __FUNCTION__, __LINE__); - // Determine wether something has changed + // Determine whether something has changed $status = (!SQL_HASZEROAFFECTED()); // Has the record changed? - if ($status === true) { + if ($status === TRUE) { // Prepare content $content = array( 'earning_id' => bigintval($earningId),