mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-14 04:32:31 -05:00
Fix bots without user agents causing the is mobile stuff to produce errors
This commit is contained in:
parent
a7bd81e37b
commit
5138f7499c
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
<html lang="{{ Language::getSessionLanguage() }}">
|
<html lang="{{ Language::getSessionLanguage() }}">
|
||||||
@php
|
@php
|
||||||
$page_title = (isset($title) ? $title . ' - ' : '') . env('APP_NAME');
|
$page_title = (isset($title) ? $title . ' - ' : '') . env('APP_NAME');
|
||||||
$device_mobile = preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent'));
|
$device_mobile = !is_null(Request::header('User-Agent')) && (preg_match('/Mobi/', Request::header('User-Agent')) || preg_match('/iP(hone|ad|od);/', Request::header('User-Agent')));
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
Loading…
Reference in a new issue