From 77849c7b723fe79b0b187690a8be8afce69127e5 Mon Sep 17 00:00:00 2001 From: Martin Kutschker Date: Mon, 10 Sep 2007 20:13:17 +0000 Subject: [PATCH] Beautify trimExpode() git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2502 709f56b5-9817-0410-a4d7-c38de5d9e867 --- t3lib/class.t3lib_div.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/t3lib/class.t3lib_div.php b/t3lib/class.t3lib_div.php index 7a22896f26ff..11de7e215f2f 100755 --- a/t3lib/class.t3lib_div.php +++ b/t3lib/class.t3lib_div.php @@ -1463,15 +1463,13 @@ class t3lib_div { $new_array[] = $value; } } + // direct return for perfomance reasons return $new_array; - } else { - foreach($array as $key => &$value) { - $value = trim($value); - } - return $array; } - // never reached - return array(); + foreach($array as $key => &$value) { + $value = trim($value); + } + return $array; } /** -- 2.20.1