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

typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php

index 843ac39..b439a58 100755 (executable)
@@ -148,9 +148,8 @@ class tx_wizardcrpages_webfunc_2 extends t3lib_extobjbase {
 
                                        // Display result:
                                $menuItems = $sys_pages->getMenu($this->pObj->id,'*','sorting','',0);
-                               reset($menuItems);
                                $lines=array();
-                               while(list(,$rec)=each($menuItems))     {
+                               foreach ($menuItems as $rec) {
                                        t3lib_BEfunc::workspaceOL('pages',$rec);
                                        if (is_array($rec))     {
                                                $lines[]= '<nobr>'.t3lib_iconWorks::getIconImage('pages',$rec,$GLOBALS['BACK_PATH'],'align="top" '.t3lib_BEfunc::titleAttribForPages($rec)).