Commit 23f99bb9 authored by Michael Stucki's avatar Michael Stucki
Browse files

Fixed bug in t3lib_div::uniqueList that was caused when t3lib_div::uniqueArray...

Fixed bug in t3lib_div::uniqueList that was caused when t3lib_div::uniqueArray was replaced with array_unique. Obviously array_unique doesn't remove empty values from the array but t3lib_div::uniqueArray did! Please take care of this if you still use this deprecated function in your extension!


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@463 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 0e1fe63d
2004-09-13 Michael Stucki <mundaun@gmx.ch>
* Fixed bug in t3lib_div::uniqueList that was caused when t3lib_div::uniqueArray was replaced with array_unique. Obviously array_unique doesn't remove empty values from the array but t3lib_div::uniqueArray did! Please take care of this if you still use this deprecated function in your extension!
2004-09-11 Kasper Skårhøj,,, <kasper@typo3.com>
* Updated changelog for 09/09
......
......@@ -740,6 +740,7 @@ class t3lib_div {
/**
* Takes comma-separated lists and arrays and removes all duplicates
* If a value in the list is trim(empty), the value is ignored.
* Usage: 16
*
* @param string Accept multiple parameters wich can be comma-separated lists of values and arrays.
......@@ -751,7 +752,7 @@ class t3lib_div {
$arg_list = func_get_args();
foreach ($arg_list as $in_list) {
if (!is_array($in_list)) {
$in_list = explode(',',$in_list);
$in_list = t3lib_div::trimExplode(',',$in_list,1);
}
$listArray = array_merge($listArray,$in_list);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment