CC-5594 : Remove all date_default_timezone_get()

must allow 24 hours, but nothing greater to match old usage.
This commit is contained in:
Naomi 2013-12-05 13:11:36 -05:00
parent eb4cefa3ff
commit c732b44903
1 changed files with 4 additions and 1 deletions

View File

@ -153,7 +153,10 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
$this->getElement('add_show_duration')->setErrors(array(_('Cannot have duration 00h 00m')));
$valid = false;
}
else if (intval($duration->format('%d')) > 0) {
else if (intval($duration->format('%d')) > 0 &&
(intval($duration->format('%h')) > 0
|| intval($duration->format('%i')) > 0
|| intval($duration->format('%s')) > 0)) {
$this->getElement('add_show_duration')->setErrors(array(_('Cannot have duration greater than 24h')));
$valid = false;
}