From 85e8a675682a65b78d758d326604220029b25f76 Mon Sep 17 00:00:00 2001 From: triatic <42704418+triatic@users.noreply.github.com> Date: Mon, 15 Oct 2018 17:14:06 +0100 Subject: [PATCH] [MrssFormat.php] Prevent PHP Notice (#858) Prevent PHP Notice when running in CLI mode --- formats/MrssFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index 7ea9756f..39d248d2 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -10,7 +10,7 @@ class MrssFormat extends FormatAbstract { $httpHost = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''; $httpInfo = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : ''; - $serverRequestUri = $this->xml_encode($_SERVER['REQUEST_URI']); + $serverRequestUri = isset($_SERVER['REQUEST_URI']) ? $this->xml_encode($_SERVER['REQUEST_URI']) : ''; $extraInfos = $this->getExtraInfos(); $title = $this->xml_encode($extraInfos['name']);