From ef4a8e4fe536316fd051849c64ca242a7b5f3edc Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 5 Oct 2009 19:12:38 +0000 Subject: [PATCH] * (bug 21006) updateArticleCount.php --update now works again --- maintenance/updateArticleCount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php index 51825ded2b..d2776e58ba 100644 --- a/maintenance/updateArticleCount.php +++ b/maintenance/updateArticleCount.php @@ -43,7 +43,7 @@ class UpdateArticleCount extends Maintenance { if( $result !== false ) { $this->output( "found {$result}.\n" ); - if( isset( $options['update'] ) && $options['update'] ) { + if( $this->hasOption( 'update' ) ) { $this->output( "Updating site statistics table... " ); $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'site_stats', array( 'ss_good_articles' => $result ), array( 'ss_row_id' => 1 ), __METHOD__ ); -- 2.20.1