diff options
| author | Brian Holland <windmillway2@gmail.com> | 2010-04-27 12:10:32 +0000 |
|---|---|---|
| committer | Brian Holland <windmillway2@gmail.com> | 2010-04-27 12:10:32 +0000 |
| commit | 8e3445d9eff5aa8a26f56e1ad43f5b4ea264ad27 (patch) | |
| tree | a8cc6cec32965a87b1194b4af12a1f19104d0bc8 /includes/functions | |
| parent | 4f61bd13d3c1217bce9e92bc66c9dfac32167704 (diff) | |
| download | webtrees-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.php | 4 |
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'); } } |
