use user nick render
This commit is contained in:
parent
dc412ba826
commit
1ec2783a8e
|
@ -243,7 +243,7 @@ function User_generate_password_recovery_token(&$user) {
|
||||||
$result = sql_query("UPDATE `User` SET `password_recovery_token`='" . sql_escape($user['password_recovery_token']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1");
|
$result = sql_query("UPDATE `User` SET `password_recovery_token`='" . sql_escape($user['password_recovery_token']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1");
|
||||||
if ($result === false)
|
if ($result === false)
|
||||||
return false;
|
return false;
|
||||||
engelsystem_log("Password recovery for " . $user['Nick'] . " started.");
|
engelsystem_log("Password recovery for " . User_Nick_render($user) . " started.");
|
||||||
return $user['password_recovery_token'];
|
return $user['password_recovery_token'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ function engelsystem_log($message) {
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
if (isset($user)) {
|
if (isset($user)) {
|
||||||
$nick = $user['Nick'];
|
$nick = User_Nick_render($user);
|
||||||
} else {
|
} else {
|
||||||
$nick = "Guest";
|
$nick = "Guest";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue