From da03893849a9fe6387137945f7376a4a77a2bca6 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 5 Sep 2009 20:02:38 +0000 Subject: [PATCH] Fixed E_NOTICE when passing an option that isn't listed in available options --- maintenance/Maintenance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 107e66ab96..88af7ab25c 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -444,7 +444,7 @@ abstract class Maintenance { # Short options for ( $p=1; $pmParams[$option]['withArg'] ) { + if ( isset( $this->mParams[$option]['withArg'] ) && $this->mParams[$option]['withArg'] ) { $param = next( $argv ); if ( $param === false ) { $this->error( "\nERROR: $option needs a value after it\n" ); -- 2.20.1