From: Brion Vibber Date: Wed, 12 Apr 2006 20:10:06 +0000 (+0000) Subject: Fix huge spew of notices from using the wrong variable X-Git-Tag: 1.31.0-rc.0~57505 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=891166e119600fe98dac94026deb2b67b9ebe505;p=lhc%2Fweb%2Fwiklou.git Fix huge spew of notices from using the wrong variable --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 37de1b6822..c3232b5012 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -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