Code Duplication    Length = 3-3 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 3344-3346 (lines=3) @@
3341
    {
3342
        $course_id = $this->get_course_int_id();
3343
3344
        if ($this->debug > 0) {
3345
            error_log('New LP - In learnpath::get_link(' . $type . ',' . $item_id . ')', 0);
3346
        }
3347
        if (empty($item_id)) {
3348
            if ($this->debug > 2) {
3349
                error_log('New LP - In learnpath::get_link() - no item id given in learnpath::get_link(), using current: ' . $this->get_current_item_id(), 0);
@@ 4472-4474 (lines=3) @@
4469
                        break;
4470
                    }
4471
                }
4472
                if ($this->debug > 2) {
4473
                    error_log('New LP - set_current_item(' . $item_id . ') done. Index is now : ' . $this->index, 0);
4474
                }
4475
            } else {
4476
                error_log('New LP - set_current_item(' . $item_id . ') failed. Not a numeric value: ', 0);
4477
            }