http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61223
Revision: 61223 Author: siebrand Date: 2010-01-18 23:22:11 +0000 (Mon, 18 Jan 2010) Log Message: ----------- init $boxes to prevent PHP Notice: Undefined variable Modified Paths: -------------- trunk/extensions/Translate/utils/TranslationHelpers.php Modified: trunk/extensions/Translate/utils/TranslationHelpers.php =================================================================== --- trunk/extensions/Translate/utils/TranslationHelpers.php 2010-01-18 23:20:55 UTC (rev 61222) +++ trunk/extensions/Translate/utils/TranslationHelpers.php 2010-01-18 23:22:11 UTC (rev 61223) @@ -150,6 +150,8 @@ $sugFields = array(); // Parse suggestions, but limit to three (in case there would be more) + $boxes = array(); + if ( $suggestions !== false ) { $suggestions = json_decode( $suggestions, true ); foreach ( $suggestions as $s ) { @@ -174,7 +176,6 @@ } } - $boxes = array(); foreach( $sugFields as $field ) { list( $text, $params, $label ) = $field; $legend = array(); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs