Fix huge spew of notices from using the wrong variable
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 12 Apr 2006 20:10:06 +0000 (20:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 12 Apr 2006 20:10:06 +0000 (20:10 +0000)
includes/SpecialNewpages.php

index 37de1b6..c3232b5 100644 (file)
@@ -62,8 +62,8 @@ class NewPagesPage extends QueryPage {
                # Do a batch existence check on the user and talk pages
                $linkBatch = new LinkBatch();
                while( $row = $dbo->fetchObject( $res ) ) {
-                       $linkBatch->addObj( Title::makeTitleSafe( NS_USER, $res->user_text ) );
-                       $linkBatch->addObj( Title::makeTitleSafe( NS_USER_TALK, $res->user_text ) );
+                       $linkBatch->addObj( Title::makeTitleSafe( NS_USER, $row->user_text ) );
+                       $linkBatch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->user_text ) );
                }
                $linkBatch->execute();
                # Seek to start