From 264d22599df157b2f88ef81b05400a93712434b9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 Aug 2021 08:54:35 +0200 Subject: [PATCH] quiten warning if client sends no User-Agent header --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index faef439c9a..836ee9f252 100755 --- a/index.php +++ b/index.php @@ -16,7 +16,7 @@ use EGroupware\Api\Egw; // Rocket.Chat desktop clients ignore /rocketchat/ path in URL and use just / // --> redirect them back to /rocketchat/ -if (strpos($_SERVER['HTTP_USER_AGENT'], 'Rocket.Chat') !== false) +if (strpos($_SERVER['HTTP_USER_AGENT'] ?? '', 'Rocket.Chat') !== false) { header('Location: /rocketchat/'); exit;