Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 329-334 (lines=6) @@
326
                }
327
328
                // NOTE : Table contains only the image file name, not full path
329
                if (stripos($tool['link'], 'http://') === false &&
330
                    stripos($tool['link'], 'https://') === false &&
331
                    stripos($tool['link'], 'ftp://') === false
332
                ) {
333
                    $tool['link'] = $web_code_path.$tool['link'];
334
                }
335
                $class = '';
336
                if ($course_tool_category == TOOL_PUBLIC_BUT_HIDDEN) {
337
                    $class = 'class="text-muted"';
@@ 810-815 (lines=6) @@
807
                }
808
809
                // NOTE : Table contains only the image file name, not full path
810
                if (stripos($tool['link'], 'http://') === false &&
811
                    stripos($tool['link'], 'https://') === false &&
812
                    stripos($tool['link'], 'ftp://') === false
813
                ) {
814
                    $tool['link'] = $web_code_path.$tool['link'];
815
                }
816
817
                if ($tool['visibility'] == '0' && $toolAdmin != '1') {
818
                    $class = 'text-muted';