Array element fixed
authorRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 17:02:21 +0000 (17:02 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 3 Nov 2009 17:02:21 +0000 (17:02 +0000)
inc/libs/user_functions.php
inc/modules/admin/what-lock_user.php

index d343e52..f1ff8fe 100644 (file)
@@ -450,7 +450,7 @@ function doNewUserPassword ($email, $userid) {
                                array(generateHash($NEW_PASS), $userid), __FUNCTION__, __LINE__);
 
                        // Prepare data and message for email
-                       $message = loadEmailTemplate('new-pass', array('new_pass' => $NEW_PASS), $userid);
+                       $message = loadEmailTemplate('new-pass', array('new_pass' => $NEW_PASS, 'nickname' => $userid), $userid);
 
                        // ... and send it away
                        sendEmail($userid, getMessage('GUEST_NEW_PASSWORD'), $message);
index bf998d8..f986bd3 100644 (file)
@@ -138,7 +138,7 @@ LIMIT 1",
                                // @TODO Rewrite these all constants
                                $content['email']   = generateEmailLink($DATA['email'], 'user_data');
                                $content['surname'] = $DATA['surname'];
-                               $content['fname']   = $DATA['family'];
+                               $content['family']  = $DATA['family'];
                                $content['userid']  = bigintval(getRequestElement('userid'));
 
                                // Realy want to lock?