r84109 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84108‎ | r84109 | r84110 >
Date:14:44, 16 March 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Untested fix for avoiding fatals on bad input
Modified paths:
  • /trunk/extensions/Translate/scripts/sync-group.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/sync-group.php
@@ -54,7 +54,7 @@
5555 $groups = array( $group );
5656 }
5757
58 -if ( !isset( $options['lang'] ) ) {
 58+if ( !isset( $options['lang'] ) || strval( $options['lang'] ) === '' ) {
5959 STDERR( "ESG3: List of language codes must be supplied with lang parameter." );
6060 exit( 1 );
6161 }

Status & tagging log