diff options
Diffstat (limited to 'includes/functions/functions_edit.php')
| -rw-r--r-- | includes/functions/functions_edit.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index 1f82bcaffc..fbb2bb28b0 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -293,21 +293,21 @@ function append_gedrec($gedrec, $ged_id) { } //-- this function will delete the gedcom record with -//-- the given $gid -function delete_gedrec($gid, $ged_id) { +//-- the given $xref +function delete_gedrec($xref, $ged_id) { global $TBLPREFIX; WT_DB::prepare( "INSERT INTO {$TBLPREFIX}change (gedcom_id, xref, old_gedcom, new_gedcom, user_id) VALUES (?, ?, ?, ?, ?)" )->execute(array( $ged_id, - $gid, - find_gedcom_record($gid, $ged_id, true), + $xref, + find_gedcom_record($xref, $ged_id, true), '', WT_USER_ID )); - AddToChangeLog("Deleting gedcom record $gid"); + AddToChangeLog("Deleting gedcom record $xref"); if (WT_USER_AUTO_ACCEPT) { accept_all_changes($xref, WT_GED_ID); |
