Skip to content
Snippets Groups Projects
Commit cf055ed4 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Fixed wrong modificationd date bug.

parent 88a1e7e0
No related branches found
No related tags found
No related merge requests found
......@@ -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']));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment