]> git.mxchange.org Git - friendica.git/commitdiff
isAjax bugfix
authorPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:10:46 +0000 (19:10 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sat, 13 Oct 2018 17:10:46 +0000 (19:10 +0200)
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');