Avoid undefined var errors if data fetch fails
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 16 Sep 2008 18:39:13 +0000 (18:39 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 16 Sep 2008 18:39:13 +0000 (18:39 +0000)
includes/Article.php

index 463d22a..3f83a29 100644 (file)
@@ -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;
                        }
                }