From 9251469edd24846b8ebb1b5a0bbc1183a22c6168 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 13 Nov 2010 16:32:40 +0000 Subject: [PATCH] Fix undefined $max when doing --dfn-only --- maintenance/refreshLinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 96e87a2943..d4eae46edb 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -35,10 +35,10 @@ class RefreshLinks extends Maintenance { } public function execute() { + $max = $this->getOption( 'm', 0 ); if ( !$this->hasOption( 'dfn-only' ) ) { $start = $this->getArg( 0, 1 ); $new = $this->getOption( 'new-only', false ); - $max = $this->getOption( 'm', false ); $end = $this->getOption( 'e', 0 ); $redir = $this->getOption( 'redirects-only', false ); $oldRedir = $this->getOption( 'old-redirects-only', false ); -- 2.20.1