Fixed issue #13670: Performance optimization: change while(list() to foreach() (thank...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_positionmap.php
index f47e19b..6d6f3d5 100644 (file)
@@ -367,7 +367,7 @@ class t3lib_positionMap {
                $codeA = t3lib_div::trimExplode(',',$codes.",line",1);
 
                $lines=array();
-               while(list(,$code)=each($codeA))        {
+               foreach ($codeA as $code) {
                        if ($code=="blank" || $allBlank)        {
                                $lines[]='<img src="clear.gif" width="18" height="8" align="top" alt="" />';
                        } else {
@@ -407,7 +407,7 @@ class t3lib_positionMap {
                $colPosArray = t3lib_div::trimExplode(',',$colPosList,1);
 
                $lines=array();
-               while(list($kk,$vv)=each($colPosArray)) {
+               foreach ($colPosArray as $kk => $vv) {
                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                                        '*',
                                                        'tt_content',