]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Check if that $_SERVER param is set before accessing.
authorAdrian Lang <mail@adrianlang.de>
Sat, 7 Mar 2009 01:19:38 +0000 (02:19 +0100)
committerAdrian Lang <mail@adrianlang.de>
Wed, 11 Mar 2009 09:39:43 +0000 (10:39 +0100)
lib/action.php

index 812df635e31f5b2e31403bbff23e0e44810651e1..45ce56ac01e020f1ab40c1e66039d09363ac0915 100644 (file)
@@ -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 ||