From: Philipp Holzer Date: Sat, 13 Oct 2018 17:10:46 +0000 (+0200) Subject: isAjax bugfix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f7cb049fb43800f4860a8d28e8d9b5c5d6ad0f3;p=friendica.git isAjax bugfix --- diff --git a/src/App.php b/src/App.php index 968f07b0c4..97c193b3b7 100644 --- a/src/App.php +++ b/src/App.php @@ -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');