We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 68e883f + e4b773c commit db24d9aCopy full SHA for db24d9a
1 file changed
models/UserVisitLog.php
@@ -39,7 +39,7 @@ public static function newVisitor($userId)
39
$model->user_id = $userId;
40
$model->token = uniqid();
41
$model->ip = LittleBigHelper::getRealIp();
42
- $model->language = isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : null;
+ $model->language = isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) ? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : '';
43
$model->browser = $browser->getBrowser();
44
$model->os = $browser->getPlatform();
45
$model->user_agent = $browser->getUserAgent();
0 commit comments