From 6f9926357c8fdd71ae3ede4c3811198974c2df43 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 11 Feb 2008 18:51:30 -0500
Subject: [PATCH] Fix send_modified_header() function

---
 program/include/rcube_shared.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 0c336ca..2679147 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -246,8 +246,8 @@
     $iscached = true;
   
   $etag = $etag ? "\"$etag\"" : null;
-  if ($etag && $_SERVER['HTTP_IF_NONE_MATCH'] == $etag)
-    $iscached = true;
+  if ($etag)
+    $iscached = ($_SERVER['HTTP_IF_NONE_MATCH'] == $etag);
   
   if ($iscached)
     header("HTTP/1.x 304 Not Modified");

--
Gitblit v1.9.1