Забытые проверки в классе.
This commit is contained in:
parent
d2e3a0b41a
commit
236631222b
@ -42,13 +42,13 @@ class nick
|
|||||||
public function full($showInvisibility = 0)
|
public function full($showInvisibility = 0)
|
||||||
{
|
{
|
||||||
$n = '';
|
$n = '';
|
||||||
if ($showInvisibility && $this->user_data['invis']) {
|
if ($showInvisibility && isset($this->user_data['invis'])) {
|
||||||
return '<i>невидимка</i>';
|
return '<i>невидимка</i>';
|
||||||
} else {
|
} 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']));
|
$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']));
|
$n .= sprintf('<img src="i/klan/%s.gif">', htmlspecialchars($this->user_data['klan']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user