Code Duplication    Length = 5-5 lines in 2 locations

main/lp/learnpath.class.php 1 location

@@ 162-166 (lines=5) @@
159
                if (!empty($row['expired_on'])) {
160
                    $this->expired_on = $row['expired_on'];
161
                }
162
                if ($this->type == 2) {
163
                    if ($row['force_commit'] == 1) {
164
                        $this->force_commit = true;
165
                    }
166
                }
167
                $this->mode = $row['default_view_mod'];
168
169
                // 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
        }