Code Duplication    Length = 3-6 lines in 2 locations

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

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

@@ 325-330 (lines=6) @@
322
                    }
323
324
                    $extend_link = '';
325
                    if (!empty($inter_num)) {
326
                        $extend_link = Display::url(
327
                              Display::return_icon('visible.gif', get_lang('HideAttemptView')),
328
                              api_get_self() . '?action=stats&fold_id=' . $my_item_id . $url_suffix
329
                        );
330
                    }
331
                    $title = $row['mytitle'];
332
333
                    if (empty($title)) {