From ef9b72537905ab8d73d5f14400b94eb03f4b61f2 Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 18 Jun 2006 15:21:31 +0000 Subject: [PATCH] dumbness++ git-svn-id: file:///svn/phpbb/trunk@6098 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_profile.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 0e70327585..f045f66e74 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -125,7 +125,7 @@ class acp_profile preg_match('#\((.*)\)#s', $row['sql'], $matches); - $new_table_cols = $matches[1]; + $new_table_cols = trim($matches[1]); $old_table_cols = explode(',', $new_table_cols); $column_list = array(); foreach($old_table_cols as $declaration) @@ -917,7 +917,7 @@ class acp_profile 'field_hide' => $cp->vars['field_hide'], 'field_no_view' => $cp->vars['field_no_view'] ); - +$db->sql_transaction('begin'); if ($action == 'create') { $profile_fields += array( @@ -1029,12 +1029,13 @@ class acp_profile preg_match('#\((.*)\)#s', $row['sql'], $matches); - $new_table_cols = $matches[1]; + $new_table_cols = trim($matches[1]); $old_table_cols = explode(',', $new_table_cols); $column_list = array(); foreach($old_table_cols as $declaration) { $entities = preg_split('#\s+#', $declaration); + var_dump($entities); $column_list[] = $entities[0]; } @@ -1380,6 +1381,7 @@ class acp_profile } } +$db->sql_transaction('commit'); $db->sql_transaction('begin'); if ($action == 'create')