diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-06-13 14:23:04 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-06-13 14:23:04 +0000 |
| commit | 2d30e880899d7a15c0cac5c1f03c951fb0ceb5be (patch) | |
| tree | 3f0eb212edbb4f651ae3f5d06fcdb18d5efdb084 /phpBB/includes/ucp/ucp_profile.php | |
| parent | 11dc41063313d62b100c16bceb289b12c7c3bf2b (diff) | |
| download | forums-2d30e880899d7a15c0cac5c1f03c951fb0ceb5be.tar forums-2d30e880899d7a15c0cac5c1f03c951fb0ceb5be.tar.gz forums-2d30e880899d7a15c0cac5c1f03c951fb0ceb5be.tar.bz2 forums-2d30e880899d7a15c0cac5c1f03c951fb0ceb5be.tar.xz forums-2d30e880899d7a15c0cac5c1f03c951fb0ceb5be.zip | |
use same method to update custom profile fields in UCP and ACP (and then i am able to debug what is wrong with the oracle code)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9582 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 30752d8c8a..572235696e 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -380,25 +380,7 @@ class ucp_profile $db->sql_query($sql); // Update Custom Fields - if (sizeof($cp_data)) - { - $sql = 'UPDATE ' . PROFILE_FIELDS_DATA_TABLE . ' - SET ' . $db->sql_build_array('UPDATE', $cp_data) . ' - WHERE user_id = ' . $user->data['user_id']; - $db->sql_query($sql); - - if (!$db->sql_affectedrows()) - { - $cp_data['user_id'] = (int) $user->data['user_id']; - - $db->sql_return_on_error(true); - - $sql = 'INSERT INTO ' . PROFILE_FIELDS_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $cp_data); - $db->sql_query($sql); - - $db->sql_return_on_error(false); - } - } + $cp->update_profile_field_data($user->data['user_id'], $cp_data); meta_refresh(3, $this->u_action); $message = $user->lang['PROFILE_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>'); |
