- Something, something, something

git-svn-id: file:///svn/phpbb/trunk@6220 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-08-01 03:56:36 +00:00
parent 1527407654
commit 3fb98a7598

View file

@ -132,7 +132,7 @@ class acp_profile
foreach($old_table_cols as $declaration) foreach($old_table_cols as $declaration)
{ {
$entities = preg_split('#\s+#', trim($declaration)); $entities = preg_split('#\s+#', trim($declaration));
if ($entities[0] !== $field_ident) if ($entities[0] !== '_' . $field_ident)
{ {
$column_list[] = $entities[0]; $column_list[] = $entities[0];
} }
@ -140,7 +140,7 @@ class acp_profile
$columns = implode(',', $column_list); $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 // create a new table and fill it up. destroy the temp one
$db->sql_query('CREATE TABLE ' . PROFILE_FIELDS_DATA_TABLE . ' (' . $new_table_cols . ');'); $db->sql_query('CREATE TABLE ' . PROFILE_FIELDS_DATA_TABLE . ' (' . $new_table_cols . ');');
@ -149,7 +149,7 @@ class acp_profile
break; break;
default: 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; $order = 0;