From: skodak Date: Mon, 12 May 2008 19:55:22 +0000 (+0000) Subject: MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=98d80d851bb1e5a9be450c4929e0345a14f56f56;p=moodle.git MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 6b484df293..794c1ea501 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -3223,7 +3223,7 @@ define('RESTORE_GROUPS_GROUPINGS', 3); //We have to recode the groupid field $grouping = backup_getid($restore->backup_unique_code, 'groupings', $groupingid); - if ($restore->groups == RESTORE_GROUPS_GROUPINGS or $restore->groups == RESTORE_GROUPINGS_ONLY) { + if ($restore->groups != RESTORE_GROUPS_GROUPINGS and $restore->groups != RESTORE_GROUPINGS_ONLY) { $grouping->new_id = 0; } return $grouping;