Забытые проверки в классе.

This commit is contained in:
lopar 2018-06-24 17:49:27 +03:00
parent d2e3a0b41a
commit 236631222b

View File

@ -42,13 +42,13 @@ class nick
public function full($showInvisibility = 0)
{
$n = '';
if ($showInvisibility && $this->user_data['invis']) {
if ($showInvisibility && isset($this->user_data['invis'])) {
return '<i>невидимка</i>';
} else {
if ($this->user_data['align']) {
if (isset($this->user_data['align'])) {
$n .= sprintf('<img src="i/align_%s.gif">', intval($this->user_data['align']));
}
if ($this->user_data['klan']) {
if (isset($this->user_data['klan'])) {
$n .= sprintf('<img src="i/klan/%s.gif">', htmlspecialchars($this->user_data['klan']));
}
}