use user nick render

main
Philip Häusler 10 years ago
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");
if ($result === 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'];
}

@ -11,7 +11,7 @@ function engelsystem_log($message) {
global $user;
if (isset($user)) {
$nick = $user['Nick'];
$nick = User_Nick_render($user);
} else {
$nick = "Guest";
}

Loading…
Cancel
Save