From: Reedy Date: Thu, 5 Dec 2013 05:16:16 +0000 (+0000) Subject: Fix Call to a member function getCacheTime() on a non-object in RefreshLinksJob.php X-Git-Tag: 1.31.0-rc.0~17779 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=8a7f264e01f42ba593bf8e44dff784ac2fd4c3f0;p=lhc%2Fweb%2Fwiklou.git Fix Call to a member function getCacheTime() on a non-object in RefreshLinksJob.php PHP Fatal error: Call to a member function getCacheTime() on a non-object in /www/translatewiki.net/w/includes/job/jobs/RefreshLinksJob.php on line 144 Change-Id: Ie30956823c8537bb2d459062c7719d1a59e26867 --- diff --git a/includes/job/jobs/RefreshLinksJob.php b/includes/job/jobs/RefreshLinksJob.php index e81998d875..cc35cf19fc 100644 --- a/includes/job/jobs/RefreshLinksJob.php +++ b/includes/job/jobs/RefreshLinksJob.php @@ -141,7 +141,7 @@ class RefreshLinksJob extends Job { if ( $page->getTouched() > wfTimestamp( TS_MW, $skewedTimestamp ) ) { $parserOptions = $page->makeParserOptions( 'canonical' ); $parserOutput = ParserCache::singleton()->getDirty( $page, $parserOptions ); - if ( $parserOutput->getCacheTime() <= $skewedTimestamp ) { + if ( $parserOutput && $parserOutput->getCacheTime() <= $skewedTimestamp ) { $parserOutput = false; // too stale } }