Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 7493-7496 (lines=4) @@
7490
            $item_title = stripslashes($extra_info['title']);
7491
            $item_description = stripslashes($extra_info['description']);
7492
            $item_terms = stripslashes($extra_info['terms']);
7493
            if (empty ($item_title)) {
7494
                $path_parts = pathinfo($extra_info['path']);
7495
                $item_title = stripslashes($path_parts['filename']);
7496
            }
7497
        } elseif (is_numeric($extra_info)) {
7498
            $sql_doc = "SELECT path, title FROM " . $tbl_doc . "
7499
                        WHERE
@@ 7507-7510 (lines=4) @@
7504
            $row 	= Database::fetch_array($result);
7505
            $item_title = $row['title'];
7506
            $item_title = str_replace('_', ' ', $item_title);
7507
            if (empty ($item_title)) {
7508
                $path_parts = pathinfo($row['path']);
7509
                $item_title = stripslashes($path_parts['filename']);
7510
            }
7511
        } else {
7512
            $item_title = '';
7513
            $item_description = '';