summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-01 21:13:13 +0400
committerAndrew Dolgov <[email protected]>2013-04-01 21:13:13 +0400
commitd6ba77f3ad6183f0acce75790172fb22f2100367 (patch)
treee4a5fa4adb947ff45a970991c549cf0737c7cc4a /classes/handler
parent2e35a7070b17a7bbc01730071391382f9cbe09ea (diff)
fix 304 being returned all the time
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 151447540..f6a5786a5 100644
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -32,7 +32,7 @@ class Handler_Public extends Handler {
$ts = strtotime(db_fetch_result($result, 0, "date_entered"));
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&
- strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $last_modified) {
+ strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $ts) {
header('HTTP/1.0 304 Not Modified');
return;
}