]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / App.php
index 968f07b0c40cfed35247527b0cc7a3d4e810ff52..97c193b3b7f4937ec68fe62fc390dd1787ba04d2 100644 (file)
@@ -327,7 +327,7 @@ class App
                $this->is_mobile = $mobile_detect->isMobile();
                $this->is_tablet = $mobile_detect->isTablet();
 
-               $this->isAjax = strtolower(defaults($_SERVER, 'HTTP_X_REQUESTED_WITH')) == 'xmlhttprequest';
+               $this->isAjax = strtolower(defaults($_SERVER, 'HTTP_X_REQUESTED_WITH', '')) == 'xmlhttprequest';
 
                // Register template engines
                $this->registerTemplateEngine('Friendica\Render\FriendicaSmartyEngine');