r40922 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40921‎ | r40922 | r40923 >
Date:18:39, 16 September 2008
Author:aaron
Status:old
Tags:
Comment:
Avoid undefined var errors if data fetch fails
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -441,7 +441,7 @@
442442 }
443443 $revision = Revision::newFromId( $this->mLatest );
444444 if( is_null( $revision ) ) {
445 - wfDebug( __METHOD__." failed to retrieve current page, rev_id {$data->page_latest}\n" );
 445+ wfDebug( __METHOD__." failed to retrieve current page, rev_id {$this->mLatest}\n" );
446446 return false;
447447 }
448448 }