Merge remote-tracking branch 'prototech/ticket/11869' into develop

* prototech/ticket/11869:
  [ticket/11869] Fix strict standards error when registering.
This commit is contained in:
Joas Schilling 2013-11-28 12:10:41 +01:00
commit 3585d167ad

View file

@ -281,8 +281,9 @@ function user_add($user_row, $cp_data = false)
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx); include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
} }
$cp = new custom_profile();
$sql = 'INSERT INTO ' . PROFILE_FIELDS_DATA_TABLE . ' ' . $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); $db->sql_query($sql);
} }