From fa508e4e0f0e5a7f4774cff1ac5718164c17671e Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 3 Mar 2018 02:37:05 +0200 Subject: [PATCH] removing notices --- admin/test.php | 2 +- classes/nick.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'] = '??';