Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 345-350 (lines=6) @@
342
                }
343
344
                // NOTE : Table contains only the image file name, not full path
345
                if (stripos($tool['link'], 'http://') === false &&
346
                    stripos($tool['link'], 'https://') === false &&
347
                    stripos($tool['link'], 'ftp://') === false
348
                ) {
349
                    $tool['link'] = $web_code_path.$tool['link'];
350
                }
351
                $class = '';
352
                if ($course_tool_category == TOOL_PUBLIC_BUT_HIDDEN) {
353
                    $class = 'class="text-muted"';
@@ 900-905 (lines=6) @@
897
                }
898
899
                // NOTE : Table contains only the image file name, not full path
900
                if (stripos($tool['link'], 'http://') === false &&
901
                    stripos($tool['link'], 'https://') === false &&
902
                    stripos($tool['link'], 'ftp://') === false
903
                ) {
904
                    $tool['link'] = $web_code_path.$tool['link'];
905
                }
906
907
                if ($tool['visibility'] == '0' && $toolAdmin != '1') {
908
                    $class = 'text-muted';