Follow-up to #13675: Use array_map() instead of array_walk()
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 26 Feb 2010 17:40:53 +0000 (17:40 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 26 Feb 2010 17:40:53 +0000 (17:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7058 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 01ea0ae..2859518 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-02-26  Christian Kuhn  <lolli@schwarzbu.ch>
 
+       * Follow-up to #13675: Use array_map() instead of array_walk()
        * Fixed bug #13675: Performance improvement: Use array_walk() for t3lib_div::intExplode (Thanks to Georg Ringer)
 
 2010-02-26  Benjamin Mack  <benni@typo3.org>
index 6cf9624..e8dc600 100644 (file)
@@ -1650,8 +1650,7 @@ final class t3lib_div {
         */
        public static function intExplode($delimiter, $string, $onlyNonEmptyValues = FALSE, $limit = 0) {
                $explodedValues = self::trimExplode($delimiter, $string, $onlyNonEmptyValues, $limit);
-               array_walk($explodedValues, 'intval');
-               return $explodedValues;
+               return array_map('intval', $explodedValues);
        }
 
        /**