Fix handling of qplimit/qpoffset and cachedtimestamp in QueryPage api module
[lhc/web/wiklou.git] / includes / QueryPage.php
index c5a093d..01d5efd 100644 (file)
@@ -423,7 +423,7 @@ abstract class QueryPage extends SpecialPage {
        }
 
        public function getCachedTimestamp() {
-               if ( !is_null( $this->cachedTimestamp ) ) {
+               if ( is_null( $this->cachedTimestamp ) ) {
                        $dbr = wfGetDB( DB_SLAVE );
                        $fname = get_class( $this ) . '::getCachedTimestamp';
                        $this->cachedTimestamp = $dbr->selectField( 'querycache_info', 'qci_timestamp',