From f81688a0fa97637f56478680496355b8cd220ff5 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Mon, 26 Aug 2024 01:21:40 +0330 Subject: [PATCH] fixed visitor counter middleware --- app/Helpers/TVisitor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Helpers/TVisitor.php b/app/Helpers/TVisitor.php index 1b811aa7..1e669da1 100644 --- a/app/Helpers/TVisitor.php +++ b/app/Helpers/TVisitor.php @@ -44,7 +44,7 @@ public static function DetectOSI() { */ public static function DetectOS() { if (!isset($_SERVER['HTTP_USER_AGENT'])) - return 'Unknown'; + return null; $os_list = Visitor::$osList; @@ -54,7 +54,7 @@ public static function DetectOS() { } } - return 'Unknown'; + return null; } /** @@ -118,7 +118,7 @@ public static function IsMobile() { */ public static function DetectBrowser() { if (!isset($_SERVER['HTTP_USER_AGENT'])) - return 'Unknown'; + return null; $browser_list = Visitor::$browserList; @@ -128,7 +128,7 @@ public static function DetectBrowser() { } } - return 'Other'; + return null; } /**