From 6d5ae05f880ba6e91000144d82b705c617421cc2 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 16 Feb 2014 17:15:29 +0000 Subject: [PATCH] Fix minor 'undefined index' notice --- forum/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/index.php b/forum/index.php index 718dd93..1456fc7 100644 --- a/forum/index.php +++ b/forum/index.php @@ -35,7 +35,7 @@ header("Preved: Krosavcheg!"); $forum_version = 'SMF 1.0.8'; # some ugly anti-bot shit: -if ($_SERVER['HTTP_USER_AGENT'] == "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)") { +if (isset ($_SERVER['HTTP_USER_AGENT']) AND $_SERVER['HTTP_USER_AGENT'] == "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)") { header("Location: http://natribu.org"); die; }