CC-4567: Calendar: Exception in zendphp.log when setting a wrong rebroadcast time from repeating show
-fixed
This commit is contained in:
parent
fe1d8d51a9
commit
846af50543
1 changed files with 1 additions and 8 deletions
|
@ -247,15 +247,8 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
|
||||||
$overlapping = Application_Model_Schedule::checkOverlappingShows($show_start, $show_end, $update, $instanceId);
|
$overlapping = Application_Model_Schedule::checkOverlappingShows($show_start, $show_end, $update, $instanceId);
|
||||||
|
|
||||||
if (!$overlapping) {
|
if (!$overlapping) {
|
||||||
|
$durationToAdd = "PT".$hours."H".$minutes."M";
|
||||||
for ($i = 1; $i <= 10; $i++) {
|
for ($i = 1; $i <= 10; $i++) {
|
||||||
$hours = ltrim($hours, '0');
|
|
||||||
if ($minutes != "00") {
|
|
||||||
$minutes = ltrim($minutes, '0');
|
|
||||||
$durationToAdd = "PT".$hours."H".$minutes."I";
|
|
||||||
} else {
|
|
||||||
$minutes = "0";
|
|
||||||
$durationToAdd = "PT".$hours."H";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($formData["add_show_rebroadcast_date_absolute_".$i])) break;
|
if (empty($formData["add_show_rebroadcast_date_absolute_".$i])) break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue