Commit cf055ed4 authored by Taddeus Kroes's avatar Taddeus Kroes

Fixed wrong modificationd date bug.

parent 88a1e7e0
......@@ -108,7 +108,7 @@ class pQueryCache extends pQuery {
header('Cache-Control: private');
method_exists($this, 'set_headers') && $this->set_headers();
if( $admin_updated = $this->admin_updated() || !isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ) {
if( ($admin_updated = $this->admin_updated()) || !isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ) {
$this->save();
} elseif( isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ) {
$if_modified_since = strtotime(preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment