diff CacheTimeCheck.inc @ 119:df158368051e

PHP7 compatibility and support for http and https
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Thu, 28 Dec 2017 18:36:45 +0100
parents adf7b11921f4
children
line wrap: on
line diff
--- a/CacheTimeCheck.inc	Thu Dec 28 18:33:17 2017 +0100
+++ b/CacheTimeCheck.inc	Thu Dec 28 18:36:45 2017 +0100
@@ -22,7 +22,7 @@
 
   $gmdate_mod = toGMTime($cache->getNewest());
 
-  if ($_SERVER['REDIRECT_URL'] == '/sitemap.xml') {
+  if (array_key_exists('REDIRECT_URL', $_SERVER) && $_SERVER['REDIRECT_URL'] == '/sitemap.xml') {
     //print_r($gmdate_mod);
   }