Code Duplication    Length = 5-5 lines in 2 locations

main/newscorm/learnpath.class.php 1 location

@@ 159-163 (lines=5) @@
156
                if ($row['expired_on'] != '0000-00-00 00:00:00') {
157
                    $this->expired_on  = $row['expired_on'];
158
                }
159
                if ($this->type == 2) {
160
                    if ($row['force_commit'] == 1) {
161
                        $this->force_commit = true;
162
                    }
163
                }
164
                $this->mode = $row['default_view_mod'];
165
            } else {
166
                $this->error = 'Learnpath ID does not exist in database ('.$sql.')';

main/newscorm/scorm.class.php 1 location

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