CC-4169: Playlist Builder: Smart Playlist time validates even if time isn't given

-fixed
This commit is contained in:
denise 2012-08-07 16:27:18 -04:00
parent 9c678c0429
commit 4ee232944d

View file

@ -338,6 +338,7 @@ class Application_Common_DateHelper
$retVal['errMsg'] = "'$year-$month-$day' is not a valid date";
} else {
// check time
if (isset($timeInfo)) {
if (isset($timeInfo[0]) && $timeInfo[0] != "") {
$hour = intval($timeInfo[0]);
} else {
@ -361,6 +362,7 @@ class Application_Common_DateHelper
$retVal['errMsg'] = "'$timeInfo[0]:$timeInfo[1]:$timeInfo[2]' is not a valid time";
}
}
}
return $retVal;
}