Project

General

Profile

Bug #17301 ยป bug_5618_4.2.5.patch

Administrator Admin, 2009-02-05 14:48

View differences:

list($table,$id,$curValue,$status,$realPid,$recFID) = $PP;
// Secures the string-length to be less than max. Will probably make problems with multi-byte strings!
if (intval($tcaFieldConf['max'])>0) {$value = substr($value,0,intval($tcaFieldConf['max']));}
if (intval($tcaFieldConf['max'])>0)
{
global $LANG;
$value = $LANG->csConvObj->substr($LANG->charSet,$value,0,intval($tcaFieldConf['max']));
}
// Checking range of value:
if ($tcaFieldConf['range'] && $value!=$tcaFieldConf['checkbox']) { // If value is not set to the allowed checkbox-value then it is checked against the ranges
if (isset($tcaFieldConf['range']['upper'])&&$value>$tcaFieldConf['range']['upper']) {$value=$tcaFieldConf['range']['upper'];}
    (1-1/1)