]> git.mxchange.org Git - friendica.git/blobdiff - mod/photo.php
Just some more fixed notice
[friendica.git] / mod / photo.php
index e899d671d64e3691e3ac2f806cb0a6d5e8ae7b36..653802d30e8bd27ffe4b3f7eec21c371323ab446 100644 (file)
@@ -39,7 +39,9 @@ function photo_init(App $a)
        if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
                header('HTTP/1.1 304 Not Modified');
                header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
-               header('Etag: ' . $_SERVER['HTTP_IF_NONE_MATCH']);
+               if (!empty($_SERVER['HTTP_IF_NONE_MATCH'])) {
+                       header('Etag: ' . $_SERVER['HTTP_IF_NONE_MATCH']);
+               }
                header("Expires: " . gmdate("D, d M Y H:i:s", time() + (31536000)) . " GMT");
                header("Cache-Control: max-age=31536000");
                if (function_exists('header_remove')) {