From: Hypolite Petovan Date: Tue, 3 Jul 2018 02:19:21 +0000 (-0400) Subject: Fix Undefined index: HTTP_USER_AGENT in App X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58e1470ddb52ba1203db67227dcdb7c725727a6e;p=friendica.git Fix Undefined index: HTTP_USER_AGENT in App --- diff --git a/src/App.php b/src/App.php index f4f5545bb3..92ff057138 100644 --- 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');