1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Null check for e_user_model::isBot()

This commit is contained in:
Nick Liu 2020-01-18 12:02:05 +01:00
parent f56bf44b98
commit d6eafdc3fc
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -266,7 +266,7 @@ class e_user_model extends e_admin_model
final public function isBot()
{
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
if(empty($userAgent))
{