From 4f7cb049fb43800f4860a8d28e8d9b5c5d6ad0f3 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 13 Oct 2018 19:10:46 +0200 Subject: [PATCH] isAjax bugfix --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');