Code Duplication    Length = 3-6 lines in 2 locations

main/inc/lib/tracking.lib.php 1 location

@@ 312-317 (lines=6) @@
309
                    }
310
311
                    $extend_link = '';
312
                    if (!empty($inter_num)) {
313
                        $extend_link = Display::url(
314
                              Display::return_icon('visible.gif', get_lang('HideAttemptView')),
315
                              api_get_self() . '?action=stats&fold_id=' . $my_item_id . $url_suffix
316
                        );
317
                    }
318
                    $title = $row['mytitle'];
319
320
                    if (empty($title)) {

main/work/work.lib.php 1 location

@@ 1419-1421 (lines=3) @@
1416
1417
        $count = getTotalWorkComment($workList, $courseInfo);
1418
1419
        if (!is_null($count) && !empty($count)) {
1420
            $work['feedback'] = ' '.Display::label($count.' '.get_lang('Feedback'), 'info');
1421
        }
1422
1423
        $lastWork = getLastWorkStudentFromParentByUser($userId, $work['id'], $courseInfo);
1424