From 8730ac650aa339bd63c9b22d6780d7479e23968a Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Sun, 6 Jul 2008 10:12:41 +0000 Subject: [PATCH] mResult is never used, removing it. --- includes/HTMLCacheUpdate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/HTMLCacheUpdate.php b/includes/HTMLCacheUpdate.php index 9504bf2678..7de2cb636a 100644 --- a/includes/HTMLCacheUpdate.php +++ b/includes/HTMLCacheUpdate.php @@ -27,7 +27,6 @@ class HTMLCacheUpdate { public $mTitle, $mTable, $mPrefix; public $mRowsPerJob, $mRowsPerQuery; - public $mResult; function __construct( $titleTo, $table ) { global $wgUpdateRowsPerJob, $wgUpdateRowsPerQuery; @@ -43,7 +42,7 @@ class HTMLCacheUpdate $cond = $this->getToCondition(); $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->select( $this->mTable, $this->getFromField(), $cond, __METHOD__ ); - $this->mResult = $res; + if ( $dbr->numRows( $res ) != 0 ) { if ( $dbr->numRows( $res ) > $this->mRowsPerJob ) { $this->insertJobs( $res ); -- 2.20.1