This commit is contained in:
lopar 2018-03-03 21:17:22 +02:00
parent 94c912458d
commit d358d54f31
3 changed files with 9 additions and 2 deletions

View File

@ -21,4 +21,10 @@ print_r($row2);
echo '<hr>';
echo n::show(11263)."<br>".n::show(11221);
echo n::show(11263)."<br>".n::show(11221)->geninf();
echo '<hr>';
echo nick::search(11263)->geninf();
echo '<hr>';
echo nick::search(11221)->geninf();
echo '<hr>';
echo nick::search(11263)->geninf(1);

View File

@ -20,7 +20,7 @@ class n
public static function show($userId)
{
if (!self::$_instance) {
self::$_instance = nick::search($userId)->geninf();
self::$_instance = nick::search($userId);
}
return self::$_instance;
}

View File

@ -38,6 +38,7 @@ class nick
// db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i', $id, 1022)->fetch_assoc();
$this->user_data['login'] = '<i>невидимка</i>';
$this->user_data['level'] = '??';
} else {
if ($this->user_data['align']) {
$n .= sprintf('<img src="i/align_%s.gif">', $this->user_data['align']);