From 3fb98a75989a905c88fec03752f0af5e48499e12 Mon Sep 17 00:00:00 2001 From: David M Date: Tue, 1 Aug 2006 03:56:36 +0000 Subject: [PATCH] - Something, something, something git-svn-id: file:///svn/phpbb/trunk@6220 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index cf952425e1..65589dd0c1 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -132,7 +132,7 @@ class acp_profile foreach($old_table_cols as $declaration) { $entities = preg_split('#\s+#', trim($declaration)); - if ($entities[0] !== $field_ident) + if ($entities[0] !== '_' . $field_ident) { $column_list[] = $entities[0]; } @@ -140,7 +140,7 @@ class acp_profile $columns = implode(',', $column_list); - $new_table_cols = preg_replace('/' . $field_ident . '[^,]+,/', '', $new_table_cols); + $new_table_cols = preg_replace('/' . '_' . $field_ident . '[^,]+,/', '', $new_table_cols); // create a new table and fill it up. destroy the temp one $db->sql_query('CREATE TABLE ' . PROFILE_FIELDS_DATA_TABLE . ' (' . $new_table_cols . ');'); @@ -149,7 +149,7 @@ class acp_profile break; default: - $db->sql_query('ALTER TABLE ' . PROFILE_FIELDS_DATA_TABLE . " DROP $field_ident"); + $db->sql_query('ALTER TABLE ' . PROFILE_FIELDS_DATA_TABLE . " DROP _$field_ident"); } $order = 0;