Fixes/Rewrites, thanks to meinnimbuzz
authorRoland Häder <roland@mxchange.org>
Wed, 3 Nov 2010 23:08:26 +0000 (23:08 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 3 Nov 2010 23:08:26 +0000 (23:08 +0000)
inc/modules/member/what-nickname.php
inc/modules/member/what-transfer.php

index 618e389a2dc9b5f12943ca31a23fefbd3b418a61..cbb093773663322c20b5fcb17d8be8868d5224fe 100644 (file)
@@ -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
index 20f4a93d3be274ab5ae9479d1f4a35e3773d40fd..af68b599d76ffec5ac1b2552643e404f9171e077 100644 (file)
@@ -462,13 +462,13 @@ KEY (`party_userid`)
                        $content['out_link'] = '<a href="{%url=modules.php?module=login&amp;what=transfer&amp;mode=list_out%}">' . $totalOut . '</a>';
                } // 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'] = '<a href="{%url=modules.php?module=login&amp;what=transfer&amp;mode=list_all%}">' . $total . '</a>';
+                       $content['all_link'] = '<a href="{%url=modules.php?module=login&amp;what=transfer&amp;mode=list_all%}">{%pipe,translateComma=' . $total . '%}</a>';
                } // END - if
 
                if (isFormSent()) {