r48412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48411‎ | r48412 | r48413 >
Date:20:09, 14 March 2009
Author:ialex
Status:ok
Tags:
Comment:
avoid E_NOTICE if only one argument is given to the "get" command
Modified paths:
  • /trunk/phase3/maintenance/mcc.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/mcc.php
@@ -88,7 +88,11 @@
8989 break;
9090
9191 case 'get':
92 - print "Getting {$args[0]}[{$args[1]}]\n";
 92+ $sub = '';
 93+ if ( array_key_exists( 1, $args ) ) {
 94+ $sub = $args[1];
 95+ }
 96+ print "Getting {$args[0]}[$sub]\n";
9397 $res = $mcc->get( $args[0] );
9498 if ( array_key_exists( 1, $args ) ) {
9599 $res = $res[$args[1]];

Status & tagging log