From: Aaron Schulz Date: Tue, 16 Sep 2008 18:39:13 +0000 (+0000) Subject: Avoid undefined var errors if data fetch fails X-Git-Tag: 1.31.0-rc.0~45259 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=fe14adefe8688c5db52bf1978dbad3e99e72ffe2;p=lhc%2Fweb%2Fwiklou.git Avoid undefined var errors if data fetch fails --- diff --git a/includes/Article.php b/includes/Article.php index 463d22af1f..3f83a292d2 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -441,7 +441,7 @@ class Article { } $revision = Revision::newFromId( $this->mLatest ); if( is_null( $revision ) ) { - wfDebug( __METHOD__." failed to retrieve current page, rev_id {$data->page_latest}\n" ); + wfDebug( __METHOD__." failed to retrieve current page, rev_id {$this->mLatest}\n" ); return false; } }