diff --git a/admin/test.php b/admin/test.php index 4587356..9317f80 100644 --- a/admin/test.php +++ b/admin/test.php @@ -17,4 +17,4 @@ echo '
'; $obj = new nick(11221); echo $obj->login()['login']."[{$obj->login()['level']}]"; echo '
'; -echo $obj->login(0)['login']."[{$obj->login()['level']}]"; \ No newline at end of file +echo $obj->login(1)['login']."[{$obj->login()['level']}]"; \ No newline at end of file diff --git a/classes/nick.php b/classes/nick.php index 07afcd4..9ed71e5 100644 --- a/classes/nick.php +++ b/classes/nick.php @@ -26,7 +26,7 @@ class nick * @param int $showInvisibility * @return array */ - public function login($showInvisibility = 1){ + public function login($showInvisibility = 0){ if ($showInvisibility) { $this->user_data['login'] = 'Невидимка'; $this->user_data['level'] = '??';