From: Adrian Lang Date: Sat, 7 Mar 2009 01:19:38 +0000 (+0100) Subject: Check if that $_SERVER param is set before accessing. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0f44ca44d9530c3658d22c0b3ac311a60cbff6c;p=quix0rs-gnu-social.git Check if that $_SERVER param is set before accessing. --- diff --git a/lib/action.php b/lib/action.php index 812df635e3..45ce56ac01 100644 --- a/lib/action.php +++ b/lib/action.php @@ -819,9 +819,8 @@ class Action extends HTMLOutputter // lawsuit } if ($lm) { header('Last-Modified: ' . date(DATE_RFC1123, $lm)); - $if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE']; - if ($if_modified_since) { - $ims = strtotime($if_modified_since); + if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { + $ims = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); if ($lm <= $ims) { $if_none_match = $_SERVER['HTTP_IF_NONE_MATCH']; if (!$if_none_match ||