From: Roland Häder Date: Wed, 3 Nov 2010 23:08:26 +0000 (+0000) Subject: Fixes/Rewrites, thanks to meinnimbuzz X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=489aebca1753a3cefdbd331e83888b76e56dbb11;p=mailer.git Fixes/Rewrites, thanks to meinnimbuzz --- diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index 618e389a2d..cbb0937736 100644 --- a/inc/modules/member/what-nickname.php +++ b/inc/modules/member/what-nickname.php @@ -56,8 +56,7 @@ if (isFormSent()) { // Nickname was submitted so let's check if it is not already in use if (isPostRequestParameterSet('nickname')) { // Check if nickname is valid - $PATTERN = '[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}'; - if (isInString($PATTERN, postRequestParameter('nickname'), $array)) { + if (isInString('[' . getConfig('nickname_pattern') . ']{' . getConfig('nickname_len') . ',}', postRequestParameter('nickname'))) { // Entered nickname is valid? $isValid = ($array[0] == postRequestParameter('nickname')); } // END - if diff --git a/inc/modules/member/what-transfer.php b/inc/modules/member/what-transfer.php index 20f4a93d3b..af68b599d7 100644 --- a/inc/modules/member/what-transfer.php +++ b/inc/modules/member/what-transfer.php @@ -462,13 +462,13 @@ KEY (`party_userid`) $content['out_link'] = '' . $totalOut . ''; } // END - if - // Add to total amount - $total += $totalOut; + // Add all to total amount + $total = $totalIn + $totalOut; // Total transactions $content['all_link'] = $total; if ($total > 0) { - $content['all_link'] = '' . $total . ''; + $content['all_link'] = '{%pipe,translateComma=' . $total . '%}'; } // END - if if (isFormSent()) {