Code Duplication    Length = 3-3 lines in 2 locations

main/lp/learnpath.class.php 2 locations

@@ 3297-3299 (lines=3) @@
3294
    {
3295
        $course_id = $this->get_course_int_id();
3296
3297
        if ($this->debug > 0) {
3298
            error_log('New LP - In learnpath::get_link('.$type.','.$item_id.')', 0);
3299
        }
3300
        if (empty($item_id)) {
3301
            if ($this->debug > 2) {
3302
                error_log('New LP - In learnpath::get_link() - no item id given in learnpath::get_link(), using current: '.$this->get_current_item_id(), 0);
@@ 4673-4675 (lines=3) @@
4670
                        break;
4671
                    }
4672
                }
4673
                if ($this->debug > 2) {
4674
                    error_log('New LP - set_current_item('.$item_id.') done. Index is now : '.$this->index, 0);
4675
                }
4676
            } else {
4677
                error_log('New LP - set_current_item('.$item_id.') failed. Not a numeric value: ', 0);
4678
            }