diff options
author | Cesar G <prototech91@gmail.com> | 2013-11-27 20:05:00 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-11-27 20:05:00 -0800 |
commit | 83b12782737b8eea03fe0cbff07ade9dbf27dee1 (patch) | |
tree | 0c1e5fe635f8c33ee3ddcf287da7d1b7f9af2755 | |
parent | 125e76f9aa83141534387a965e8373c9b9cd5c4d (diff) | |
download | forums-83b12782737b8eea03fe0cbff07ade9dbf27dee1.tar forums-83b12782737b8eea03fe0cbff07ade9dbf27dee1.tar.gz forums-83b12782737b8eea03fe0cbff07ade9dbf27dee1.tar.bz2 forums-83b12782737b8eea03fe0cbff07ade9dbf27dee1.tar.xz forums-83b12782737b8eea03fe0cbff07ade9dbf27dee1.zip |
[ticket/11869] Fix strict standards error when registering.
PHPBB3-11869
-rw-r--r-- | phpBB/includes/functions_user.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 30891c3fb5..b54197ac03 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -281,8 +281,9 @@ function user_add($user_row, $cp_data = false) include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); } + $cp = new custom_profile(); $sql = 'INSERT INTO ' . PROFILE_FIELDS_DATA_TABLE . ' ' . - $db->sql_build_array('INSERT', custom_profile::build_insert_sql_array($cp_data)); + $db->sql_build_array('INSERT', $cp->build_insert_sql_array($cp_data)); $db->sql_query($sql); } |