CC-4169: Playlist Builder: Smart Playlist time validates even if time isn't given
-fixed
This commit is contained in:
parent
9c678c0429
commit
4ee232944d
1 changed files with 23 additions and 21 deletions
|
@ -338,6 +338,7 @@ class Application_Common_DateHelper
|
||||||
$retVal['errMsg'] = "'$year-$month-$day' is not a valid date";
|
$retVal['errMsg'] = "'$year-$month-$day' is not a valid date";
|
||||||
} else {
|
} else {
|
||||||
// check time
|
// check time
|
||||||
|
if (isset($timeInfo)) {
|
||||||
if (isset($timeInfo[0]) && $timeInfo[0] != "") {
|
if (isset($timeInfo[0]) && $timeInfo[0] != "") {
|
||||||
$hour = intval($timeInfo[0]);
|
$hour = intval($timeInfo[0]);
|
||||||
} else {
|
} else {
|
||||||
|
@ -361,6 +362,7 @@ class Application_Common_DateHelper
|
||||||
$retVal['errMsg'] = "'$timeInfo[0]:$timeInfo[1]:$timeInfo[2]' is not a valid time";
|
$retVal['errMsg'] = "'$timeInfo[0]:$timeInfo[1]:$timeInfo[2]' is not a valid time";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $retVal;
|
return $retVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue