]> git.mjollnir.org Git - moodle.git/commitdiff
deleted some negations used to test the restore metadata process. :-)
authorstronk7 <stronk7>
Mon, 7 Feb 2005 17:58:50 +0000 (17:58 +0000)
committerstronk7 <stronk7>
Mon, 7 Feb 2005 17:58:50 +0000 (17:58 +0000)
backup/restorelib.php

index 00235d48b43d5831df539c86f6f12a2e6071d88a..35009e5f459d1df2d8ae51ee283880b78867f3f2 100644 (file)
                     $dbmetacourse = false;
                     //Check if child course exists in destination server
                     //(by id in the same server or by idnumber and shortname in other server)
-                    if (!$restore->original_wwwroot == $CFG->wwwroot) {
+                    if ($restore->original_wwwroot == $CFG->wwwroot) {
                         //Same server, lets see by id
                         $dbcourse = get_record('course','id',$child->id);
                     } else {
                     $dbmetacourse = false;
                     //Check if parent course exists in destination server
                     //(by id in the same server or by idnumber and shortname in other server)
-                    if (!$restore->original_wwwroot == $CFG->wwwroot) {
+                    if ($restore->original_wwwroot == $CFG->wwwroot) {
                         //Same server, lets see by id
                         $dbcourse = get_record('course','id',$parent->id);
                     } else {