summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_import.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/functions/functions_import.php b/includes/functions/functions_import.php
index f60a51a10c..7d7e8c8111 100644
--- a/includes/functions/functions_import.php
+++ b/includes/functions/functions_import.php
@@ -1243,8 +1243,8 @@ function accept_all_changes($xref, $ged_id) {
" ORDER BY change_id"
)->execute(array($xref, $ged_id))->fetchAll();
foreach ($changes as $change) {
- update_record($change->new_gedcom, ged_id, empty($change->new_gedcom));
- AddToLog("Accepted change {$change->change_id} for {$xref} / {$changes->gedcom_name} into database", 'edit');
+ update_record($change->new_gedcom, $ged_id, empty($change->new_gedcom));
+ AddToLog("Accepted change {$change->change_id} for {$xref} / {$change->gedcom_name} into database", 'edit');
}
}