summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
authorBrian Holland <windmillway2@gmail.com>2010-04-27 12:10:32 +0000
committerBrian Holland <windmillway2@gmail.com>2010-04-27 12:10:32 +0000
commit8e3445d9eff5aa8a26f56e1ad43f5b4ea264ad27 (patch)
treea8cc6cec32965a87b1194b4af12a1f19104d0bc8 /includes/functions
parent4f61bd13d3c1217bce9e92bc66c9dfac32167704 (diff)
downloadwebtrees-8e3445d9eff5aa8a26f56e1ad43f5b4ea264ad27.tar.gz
webtrees-8e3445d9eff5aa8a26f56e1ad43f5b4ea264ad27.tar.bz2
webtrees-8e3445d9eff5aa8a26f56e1ad43f5b4ea264ad27.zip
Fix errors appearing when 'user administration/auto accept' is set to yes.
Note: changes are still not auto accepted, you still have to go through the accept/reject routine.
Diffstat (limited to 'includes/functions')
-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');
}
}