CC-3639: Preferences-> Fade In is interpreted improperly (it is insanely high)

- the regular exp check in model class was wrong
This commit is contained in:
James 2012-04-13 12:05:59 -04:00
parent ef908ee894
commit 1bb04296a9
4 changed files with 6 additions and 7 deletions

View file

@ -46,7 +46,7 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
if ($v instanceof DateTime) {
$dt = $v;
}
else if (preg_match('/^[0-5][0-9](\.\d{1,6})?$/', $v)) {
else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) {
$dt = DateTime::createFromFormat("s.u", $v);
}
else {
@ -74,7 +74,7 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
if ($v instanceof DateTime) {
$dt = $v;
}
else if (preg_match('/^[0-5][0-9](\.\d{1,6})?$/', $v)) {
else if (preg_match('/^[0-9]{1,2}(\.\d{1,6})?$/', $v)) {
$dt = DateTime::createFromFormat("s.u", $v);
}
else {