diff options
author | David M <davidmj@users.sourceforge.net> | 2006-06-18 15:21:31 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-06-18 15:21:31 +0000 |
commit | ef9b72537905ab8d73d5f14400b94eb03f4b61f2 (patch) | |
tree | 6d2c8414fd715177202ebb49404f91202850b016 /phpBB | |
parent | bd3c8c50c01ec0344fec1c5a1cef2cf83c4c4ca7 (diff) | |
download | forums-ef9b72537905ab8d73d5f14400b94eb03f4b61f2.tar forums-ef9b72537905ab8d73d5f14400b94eb03f4b61f2.tar.gz forums-ef9b72537905ab8d73d5f14400b94eb03f4b61f2.tar.bz2 forums-ef9b72537905ab8d73d5f14400b94eb03f4b61f2.tar.xz forums-ef9b72537905ab8d73d5f14400b94eb03f4b61f2.zip |
dumbness++
git-svn-id: file:///svn/phpbb/trunk@6098 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 8 |
1 files 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') |