Code Duplication    Length = 5-5 lines in 2 locations

main/lp/learnpath.class.php 1 location

@@ 165-169 (lines=5) @@
162
                if (!empty($row['expired_on'])) {
163
                    $this->expired_on = $row['expired_on'];
164
                }
165
                if ($this->type == 2) {
166
                    if ($row['force_commit'] == 1) {
167
                        $this->force_commit = true;
168
                    }
169
                }
170
                $this->mode = $row['default_view_mod'];
171
172
                // Check user ID.

main/lp/scorm.class.php 1 location

@@ 988-992 (lines=5) @@
985
            $this->scorm_debug = $row['debug'];
986
            $this->js_lib = $row['js_lib'];
987
            $this->path = $row['path'];
988
            if ($this->type == 2) {
989
                if ($row['force_commit'] == 1) {
990
                    $this->force_commit = true;
991
                }
992
            }
993
            $this->mode = $row['default_view_mod'];
994
            $this->subdir = $row['path'];
995
        }