From: Roland Häder Date: Mon, 27 Sep 2010 15:47:05 +0000 (+0000) Subject: Renamed some variables X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2058457b905d92b381294d86e2c4585f82ab90b4;p=mailer.git Renamed some variables --- diff --git a/inc/modules/member/what-transfer.php b/inc/modules/member/what-transfer.php index 3c6d3e1c1b..20f4a93d3b 100644 --- a/inc/modules/member/what-transfer.php +++ b/inc/modules/member/what-transfer.php @@ -448,23 +448,23 @@ KEY (`party_userid`) default: // Overview page // Check incoming transfers - $total = countSumTotalData(getMemberId(), 'user_transfers_in', 'id', 'userid', true); - $content['in_link'] = $total; - if ($total > 0) { - $content['in_link'] = '' . $total . ''; + $totalIn = countSumTotalData(getMemberId(), 'user_transfers_in', 'id', 'userid', true); + $content['in_link'] = $totalIn; + if ($totalIn > 0) { + $content['in_link'] = '' . $totalIn . ''; } // END - if // Check outgoing transfers - $dmy = countSumTotalData(getMemberId(), 'user_transfers_out', 'id', 'userid', true); - - // Add to total amount - $total += $dmy; + $totalOut = countSumTotalData(getMemberId(), 'user_transfers_out', 'id', 'userid', true); - $content['out_link'] = $dmy; - if ($dmy > 0) { - $content['out_link'] = '' . $dmy . ''; + $content['out_link'] = $totalOut; + if ($totalOut > 0) { + $content['out_link'] = '' . $totalOut . ''; } // END - if + // Add to total amount + $total += $totalOut; + // Total transactions $content['all_link'] = $total; if ($total > 0) { @@ -505,12 +505,12 @@ KEY (`party_userid`) FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE - `time_trans` > (UNIX_TIMESTAMP() - %s) AND `userid`=%s + `time_trans` > (UNIX_TIMESTAMP() - {?transfer_timeout?}) AND + `userid`=%s ORDER BY `time_trans` DESC LIMIT 1", array( - getConfig('transfer_timeout'), getMemberId() ), __FILE__, __LINE__);