summaryrefslogtreecommitdiff
path: root/includes/functions
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-04-23 18:45:53 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-04-23 18:45:53 +0000
commitf98d5b451ae2b9c224ed2ee87dd6fee1b2f5a5d6 (patch)
tree98568f5643188f67d5dd879ab194ee3e568831dc /includes/functions
parent03c767ab1b9f5b731fa1792f19d26d0090813480 (diff)
downloadwebtrees-f98d5b451ae2b9c224ed2ee87dd6fee1b2f5a5d6.tar.gz
webtrees-f98d5b451ae2b9c224ed2ee87dd6fee1b2f5a5d6.tar.bz2
webtrees-f98d5b451ae2b9c224ed2ee87dd6fee1b2f5a5d6.zip
fix undefined index TBLPREFIX
Diffstat (limited to 'includes/functions')
-rw-r--r--includes/functions/functions_import.php4
1 files changed, 4 insertions, 0 deletions
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'".