http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99508

Revision: 99508
Author:   foxtrott
Date:     2011-10-11 17:46:05 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
bugfix (Incorrect handling of terms containing "0")

Modified Paths:
--------------
    trunk/extensions/Lingo/LingoTree.php

Modified: trunk/extensions/Lingo/LingoTree.php
===================================================================
--- trunk/extensions/Lingo/LingoTree.php        2011-10-11 17:40:40 UTC (rev 
99507)
+++ trunk/extensions/Lingo/LingoTree.php        2011-10-11 17:46:05 UTC (rev 
99508)
@@ -74,7 +74,7 @@
                $tree = &$this->mTree;
 
                // end of path, store description; end of recursion
-               while ( $step = array_shift( $path ) ) {
+               while ( ($step = array_shift( $path )) !== null ) {
 
                        if ( !isset( $tree[$step] ) ) {
                                $tree[$step] = array();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to