Project

General

Profile

Bug #19222 » patch_20100602_2.diff

Administrator Admin, 2010-06-02 12:20

View differences:

typo3_src-4.4.0beta3/t3lib/class.t3lib_tcemain_ORIGINAL.php 2010-06-02 11:54:20.000000000 +0200
}
break;
case 'double2':
case 'double3':
case 'double4':
case 'double5':
case 'double6':
case 'double7':
case 'double8':
case 'double9':
$value = preg_replace('/[^0-9,\.-]/', '', $value);
$negative = substr($value, 0, 1) == '-';
$value = strtr($value, array(',' => '.', '-' => ''));
......
if ($negative) {
$value *= -1;
}
$digts = intval($func{6});
$value = number_format($value, $digts, '.', '');
$value = number_format($value, 2, '.', '');
break;
case 'md5':
if (strlen($value)!=32){$set=false;}
......
if ($this->checkStoredRecords_loose && !$value && !$row[$key]) {
// Nothing...
} elseif (strcmp($value,$row[$key])) {
if (strpos($TCA[$table]['columns'][$key]['config']['eval'],'double') !== FALSE && doubleval($value) == doubleval($row[$key])) {
// Nothing...
} else {
$errorString[] = $key;
}
$errorString[] = $key;
}
}
(2-2/3)