From 98d80d851bb1e5a9be450c4929e0345a14f56f56 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 12 May 2008 19:55:22 +0000 Subject: [PATCH] MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio --- backup/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5