Index: trunk/phase3/maintenance/mcc.php |
— | — | @@ -88,7 +88,11 @@ |
89 | 89 | break; |
90 | 90 | |
91 | 91 | 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"; |
93 | 97 | $res = $mcc->get( $args[0] ); |
94 | 98 | if ( array_key_exists( 1, $args ) ) { |
95 | 99 | $res = $res[$args[1]]; |