From fe94914eb5715fc44d14ac442c0eecfa455d3c77 Mon Sep 17 00:00:00 2001 From: triatic <42704418+triatic@users.noreply.github.com> Date: Wed, 12 Sep 2018 14:37:27 +0100 Subject: [PATCH] [AtomFormat.php] Eliminate PHP Notice when running in CLI mode (#824) --- formats/AtomFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 5abb1c3a..dadd8ae5 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -11,7 +11,7 @@ class AtomFormat 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']);