Fixed issue #13670: Performance optimization: change while(list() to foreach() (thank...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_refindex.php
index 15ed193..d10d80f 100644 (file)
@@ -931,8 +931,7 @@ class t3lib_refindex {
                                        unset($wl[$row['baseword']]);
                                }
 
-                               reset($wl);
-                               while(list($key,$val)=each($wl)) {
+                               foreach ($wl as $key => $val) {
                                        $insertFields = array(
                                                'wid' => t3lib_div::md5int($key),
                                                'baseword' => $key