https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b61da
)
Fix Undefined index: HTTP_USER_AGENT in App
author
Hypolite Petovan
<mrpetovan@gmail.com>
Tue, 3 Jul 2018 02:19:21 +0000
(22:19 -0400)
committer
Hypolite Petovan
<mrpetovan@gmail.com>
Tue, 3 Jul 2018 02:19:21 +0000
(22:19 -0400)
src/App.php
patch
|
blob
|
history
diff --git
a/src/App.php
b/src/App.php
index
f4f5545
..
92ff057
100644
(file)
--- a/
src/App.php
+++ b/
src/App.php
@@
-293,7
+293,7
@@
class App
$this->is_tablet = $mobile_detect->isTablet();
// Friendica-Client
- $this->is_friendica_app =
($_SERVER['HTTP_USER_AGENT'] == 'Apache-HttpClient/UNAVAILABLE (java 1.4)')
;
+ $this->is_friendica_app =
isset($_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_USER_AGENT'] == 'Apache-HttpClient/UNAVAILABLE (java 1.4)'
;
// Register template engines
$this->register_template_engine('Friendica\Render\FriendicaSmartyEngine');