From f98d5b451ae2b9c224ed2ee87dd6fee1b2f5a5d6 Mon Sep 17 00:00:00 2001 From: Ɓukasz Wilenski Date: Fri, 23 Apr 2010 18:45:53 +0000 Subject: fix undefined index TBLPREFIX --- includes/functions/functions_import.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/functions') diff --git a/includes/functions/functions_import.php b/includes/functions/functions_import.php index 85a5ae5076..f60a51a10c 100644 --- a/includes/functions/functions_import.php +++ b/includes/functions/functions_import.php @@ -1233,6 +1233,8 @@ function import_max_ids($ged_id, $MAX_IDS) { // Accept all pending changes for a specified record function accept_all_changes($xref, $ged_id) { + global $TBLPREFIX; + $changes=WT_DB::prepare( "SELECT change_id, gedcom_name, new_gedcom". " FROM {$TBLPREFIX}change c". @@ -1248,6 +1250,8 @@ function accept_all_changes($xref, $ged_id) { // Accept all pending changes for a specified record function reject_all_changes($xref, $ged_id) { + global $TBLPREFIX; + WT_DB::prepare( "UPDATE {$TBLPREFIX}change". " SET status='rejected'". -- cgit v1.3