From: Chad Horohoe Date: Sat, 13 Nov 2010 16:32:40 +0000 (+0000) Subject: Fix undefined $max when doing --dfn-only X-Git-Tag: 1.31.0-rc.0~33898 X-Git-Url: https://git.cyclocoop.org/%2C?a=commitdiff_plain;h=9251469edd24846b8ebb1b5a0bbc1183a22c6168;p=lhc%2Fweb%2Fwiklou.git Fix undefined $max when doing --dfn-only --- 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 );