From 6f9926357c8fdd71ae3ede4c3811198974c2df43 Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 11 Feb 2008 23:51:30 +0000 Subject: Fix send_modified_header() function --- program/include/rcube_shared.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include') diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 0c336ca4e..267914736 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -246,8 +246,8 @@ function send_modified_header($mdate, $etag=null) $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"); -- cgit v1.2.3