+
+2006-06-08 Martin Kutschker <martin.t.kutschker@blackbox.net>
+
+ * Make t3lib_div::arrayToLogString() accept an empty string as empty list
+
2006-06-04 Martin Kutschker <martin.t.kutschker@blackbox.net>
- * unify PHP5 check in config_defaults.php and deprecate $TYPO_VERSION
+ * Unify PHP5 check in config_defaults.php and deprecate $TYPO_VERSION
2006-06-02 Martin Kutschker <martin.t.kutschker@blackbox.net>
$str = '';
if(is_array($arr)) {
if (!is_array($valueList)) {
- $valueList = explode(',', $valueList);
+ $valueList = $valueList = t3lib_div::trimExplode(',', $valueList, 1);
}
+ $valListCnt = count($valueList);
foreach($arr as $key => $value) {
- if (!count($valueList) OR (count($valueList) AND in_array($key, $valueList))) {
+ if (!$valListCnt || in_array($key, $valueList)) {
$str .= (string)$key.trim(': '.t3lib_div::fixed_lgd(str_replace("\n",'|',(string)$value), $valueLength)).'; ';
}
}