r61223 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61222‎ | r61223 | r61224 >
Date:23:22, 18 January 2010
Author:siebrand
Status:deferred
Tags:
Comment:
init $boxes to prevent PHP Notice: Undefined variable
Modified paths:
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -150,6 +150,8 @@
151151
152152 $sugFields = array();
153153 // Parse suggestions, but limit to three (in case there would be more)
 154+ $boxes = array();
 155+
154156 if ( $suggestions !== false ) {
155157 $suggestions = json_decode( $suggestions, true );
156158 foreach ( $suggestions as $s ) {
@@ -174,7 +176,6 @@
175177 }
176178 }
177179
178 - $boxes = array();
179180 foreach( $sugFields as $field ) {
180181 list( $text, $params, $label ) = $field;
181182 $legend = array();

Status & tagging log