From c732b4490334fe58614ce7b534d376fc133b6442 Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 5 Dec 2013 13:11:36 -0500 Subject: [PATCH] CC-5594 : Remove all date_default_timezone_get() must allow 24 hours, but nothing greater to match old usage. --- airtime_mvc/application/forms/AddShowWhen.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/application/forms/AddShowWhen.php b/airtime_mvc/application/forms/AddShowWhen.php index b3a5bae0c..3f2abd5c2 100644 --- a/airtime_mvc/application/forms/AddShowWhen.php +++ b/airtime_mvc/application/forms/AddShowWhen.php @@ -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; }