Skip to content

Commit

Permalink
Merge branch 'master' of [email protected]:sergeychernyshev/showslow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Chernyshev committed Jul 31, 2011
2 parents e9d0340 + 0f17e55 commit 9841d5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions details/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@

header('Last-modified: '.date(DATE_RFC2822, $lastupdate));

if (array_key_exists('HTTP_IF_MODIFIED_SINCE', $_SERVER) && ($lastupdate <= strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']))) {
if (array_key_exists('HTTP_IF_MODIFIED_SINCE', $_SERVER) &&
($lastupdate <= strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']))
) {
header('HTTP/1.0 304 Not Modified');
exit;
}
Expand All @@ -101,7 +103,7 @@
} else {
$SCRIPTS = array_merge($SCRIPTS, array(
array('condition' => 'if IE', 'url' => assetURL('flot/excanvas.js')),
'https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js',
'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js',
assetURL('flot/jquery.flot.js'),
assetURL('flot/jquery.flot.crosshair.js'),
assetURL('flot/jquery.flot.selection.js'),
Expand Down

0 comments on commit 9841d5d

Please sign in to comment.