From 294575021a339470a31912f9c0875189042f9874 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Mon, 28 Aug 2023 12:08:59 +0300 Subject: [PATCH] PHP Warning: Undefined array key "joinIP" --- buttons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buttons.php b/buttons.php index 4bd6fd08..5c488dcf 100644 --- a/buttons.php +++ b/buttons.php @@ -43,7 +43,7 @@ if (isset($_GET['showcode'])) { die(); } -if ($u->info['joinIP'] == 1 && $u->info['ip'] != IP) { +if (isset($u->info['joinIP']) && $u->info['joinIP'] == 1 && $u->info['ip'] != IP) { er('#Пожалуйста авторизируйтесь с главной страницы'); } elseif (isset($_GET['exit'])) { setcookie('login', '', 0, '', Config::get('host'));