From: Nicolas Dumazet Date: Sun, 6 Jul 2008 10:12:41 +0000 (+0000) Subject: mResult is never used, removing it. X-Git-Tag: 1.31.0-rc.0~46702 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=8730ac650aa339bd63c9b22d6780d7479e23968a;p=lhc%2Fweb%2Fwiklou.git mResult is never used, removing it. --- 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 );