Fixed issue #13670: Performance optimization: change while(list() to foreach() (thank...
authorErnesto Baschny <ernst@cron-it.de>
Thu, 13 May 2010 17:13:01 +0000 (17:13 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 13 May 2010 17:13:01 +0000 (17:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7602 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/version/class.tx_version_cm1.php

index b2cbb8d..7cc0584 100755 (executable)
@@ -95,9 +95,8 @@ class tx_version_cm1 {
                        );
 
                                // Find position of "delete" element:
-                       reset($menuItems);
                        $c=0;
-                       while(list($k)=each($menuItems))        {
+                       foreach ($menuItems as $k => $value) {
                                $c++;
                                if (!strcmp($k,'delete'))       break;
                        }