From efb7b817a76b05c93a7216dc7dc682d12b0912f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 20 Sep 2011 16:26:39 +0000 Subject: [PATCH] I broke few parser tests in r97633 by overlooking the return value. This fixes them. --- includes/cache/LinkCache.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 9362c084eb..785b19b3b1 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -200,8 +200,10 @@ class LinkCache { # Set fields... if ( $s !== false ) { $this->addGoodLinkObjFromRow( $nt, $s ); + $id = intval( $s->page_id ); } else { $this->addBadLinkObj( $nt ); + $id = 0; } wfProfileOut( __METHOD__ ); -- 2.20.1