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:
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user