summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-11 23:51:30 +0000
committerthomascube <thomas@roundcube.net>2008-02-11 23:51:30 +0000
commit6f9926357c8fdd71ae3ede4c3811198974c2df43 (patch)
treef26bb105f0622ec8ec7ff17b0f120d3c65c89bb2
parent19881691bdef7beba3b9ed41049dab9b6f856f93 (diff)
Fix send_modified_header() function
-rw-r--r--program/include/rcube_shared.inc4
1 files changed, 2 insertions, 2 deletions
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");