MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio

This commit is contained in:
skodak 2008-05-12 19:55:22 +00:00
parent b90d006cd4
commit 98d80d851b

View File

@ -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;