Skip to content

Commit

Permalink
fixed visitor counter middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Aug 25, 2024
1 parent f74c979 commit f81688a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Helpers/TVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -54,7 +54,7 @@ public static function DetectOS() {
}
}

return 'Unknown';
return null;
}

/**
Expand Down Expand Up @@ -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;

Expand All @@ -128,7 +128,7 @@ public static function DetectBrowser() {
}
}

return 'Other';
return null;
}

/**
Expand Down

0 comments on commit f81688a

Please sign in to comment.