use user nick render

This commit is contained in:
Philip Häusler 2014-12-26 19:26:53 +01:00
parent dc412ba826
commit 1ec2783a8e
2 changed files with 8 additions and 8 deletions

View File

@ -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'];
} }

View File

@ -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";
} }