1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02: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

View File

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