Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -444,7 +444,7 @@ |
445 | 445 | # Short options |
446 | 446 | for ( $p=1; $p<strlen( $arg ); $p++ ) { |
447 | 447 | $option = $arg{$p}; |
448 | | - if ( $this->mParams[$option]['withArg'] ) { |
| 448 | + if ( isset( $this->mParams[$option]['withArg'] ) && $this->mParams[$option]['withArg'] ) { |
449 | 449 | $param = next( $argv ); |
450 | 450 | if ( $param === false ) { |
451 | 451 | $this->error( "\nERROR: $option needs a value after it\n" ); |