Fixed issue #13670: Performance optimization: change while(list() to foreach() (thank...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_modsettings.php
index 028aff8..acaef9e 100644 (file)
@@ -247,8 +247,7 @@ class t3lib_modSettings {
 
                $prefix = $prefix ? $prefix : $this->prefix;
 
-               reset($SOBE->MOD_SETTINGS);
-               while(list($key)=each($SOBE->MOD_SETTINGS))     {
+               foreach ($SOBE->MOD_SETTINGS as $key => $value) {
                        if (preg_match('/^'.$prefix.'/',$key)) {
                                $this->storeList[$key]=$key;
                        }