From: Alexandre Emsenhuber Date: Sat, 5 Sep 2009 20:02:38 +0000 (+0000) Subject: Fixed E_NOTICE when passing an option that isn't listed in available options X-Git-Tag: 1.31.0-rc.0~39907 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=da03893849a9fe6387137945f7376a4a77a2bca6;p=lhc%2Fweb%2Fwiklou.git Fixed E_NOTICE when passing an option that isn't listed in available options --- 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" );