Code Duplication    Length = 3-6 lines in 2 locations

main/inc/lib/agenda.lib.php 2 locations

@@ 3498-3503 (lines=6) @@
3495
                TIME_NO_SEC_FORMAT
3496
            );
3497
            $end_time = '';
3498
            if (!empty($item['end_date'])) {
3499
                $end_time = ' - '.api_format_date(
3500
                        $item['end_date'],
3501
                        DATE_TIME_FORMAT_LONG
3502
                    );
3503
            }
3504
3505
            // if the student has specified a course we a add a link to that course
3506
            if ($item['course'] <> "") {
@@ 3797-3799 (lines=3) @@
3794
                            );
3795
                            $end_time = '';
3796
3797
                            if (!empty($value['end_date'])) {
3798
                                $end_time = '-&nbsp;<i>'.api_format_date(
3799
                                        $value['end_date'],
3800
                                        DATE_TIME_FORMAT_LONG
3801
                                    ).'</i>';
3802
                            }