aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_profile.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-08-01 03:56:36 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-08-01 03:56:36 +0000
commit3fb98a75989a905c88fec03752f0af5e48499e12 (patch)
tree3eceabe679a59e97671634376d826fd5fd3b4979 /phpBB/includes/acp/acp_profile.php
parent1527407654b514f5676dc6c9959430670acd8c13 (diff)
downloadforums-3fb98a75989a905c88fec03752f0af5e48499e12.tar
forums-3fb98a75989a905c88fec03752f0af5e48499e12.tar.gz
forums-3fb98a75989a905c88fec03752f0af5e48499e12.tar.bz2
forums-3fb98a75989a905c88fec03752f0af5e48499e12.tar.xz
forums-3fb98a75989a905c88fec03752f0af5e48499e12.zip
- Something, something, something
git-svn-id: file:///svn/phpbb/trunk@6220 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r--phpBB/includes/acp/acp_profile.php6
1 files 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;