r99508 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99507‎ | r99508 | r99509 >
Date:17:46, 11 October 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (Incorrect handling of terms containing "0")
Modified paths:
  • /trunk/extensions/Lingo/LingoTree.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Lingo/LingoTree.php
@@ -74,7 +74,7 @@
7575 $tree = &$this->mTree;
7676
7777 // end of path, store description; end of recursion
78 - while ( $step = array_shift( $path ) ) {
 78+ while ( ($step = array_shift( $path )) !== null ) {
7979
8080 if ( !isset( $tree[$step] ) ) {
8181 $tree[$step] = array();

Status & tagging log