Explorar o código

Fixed wrong modificationd date bug.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
cf055ed4dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pquery.cache.php

+ 1 - 1
pquery.cache.php

@@ -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']));