Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 335-340 (lines=6) @@
332
                }
333
334
                // NOTE : Table contains only the image file name, not full path
335
                if (stripos($tool['link'], 'http://') === false &&
336
                    stripos($tool['link'], 'https://') === false &&
337
                    stripos($tool['link'], 'ftp://') === false
338
                ) {
339
                    $tool['link'] = $web_code_path.$tool['link'];
340
                }
341
                $class = '';
342
                if ($course_tool_category == TOOL_PUBLIC_BUT_HIDDEN) {
343
                    $class = 'class="text-muted"';
@@ 902-907 (lines=6) @@
899
                }
900
901
                // NOTE : Table contains only the image file name, not full path
902
                if (stripos($tool['link'], 'http://') === false &&
903
                    stripos($tool['link'], 'https://') === false &&
904
                    stripos($tool['link'], 'ftp://') === false
905
                ) {
906
                    $tool['link'] = $web_code_path.$tool['link'];
907
                }
908
909
                if ($tool['visibility'] == '0' && $toolAdmin != '1') {
910
                    $class = 'text-muted';