mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Null check for e_user_model::isBot()
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user