Bug #18856 ยป tslib_content.patch
class.tslib_content.php 2008-05-26 17:22:43.000000000 +0200 | ||
---|---|---|
// Get value/label
|
||
$subParts=explode('=',$valueParts[$a]);
|
||
$subParts[1] = (isset($subParts[1])?trim($subParts[1]):trim($subParts[0])); // Sets the value
|
||
if (strlen($subParts[1]) && t3lib_div::inList('recipient_copy,recipient',$confData['fieldname'])) {
|
||
$subParts[1] = $GLOBALS['TSFE']->codeString($subParts[1]);
|
||
}
|
||
$items[] = $subParts; // Adds the value/label pair to the items-array
|
||
if ($sel) {$defaults[]=$subParts[1];} // Sets the default value if value/label pair is marked as default.
|
||
}
|
||
... | ... | |
// Get value/label
|
||
$subParts=explode('=',$valueParts[$a]);
|
||
$subParts[1] = (isset($subParts[1])?trim($subParts[1]):trim($subParts[0])); // Sets the value
|
||
if (strlen($subParts[1]) && t3lib_div::inList('recipient_copy,recipient',$confData['fieldname'])) {
|
||
$subParts[1] = $GLOBALS['TSFE']->codeString($subParts[1]);
|
||
}
|
||
$items[] = $subParts; // Adds the value/label pair to the items-array
|
||
if ($sel) {$default=$subParts[1];} // Sets the default value if value/label pair is marked as default.
|
||
}
|