[ticket/12765] Execute query directly from db tools

PHPBB3-12765
This commit is contained in:
Carlo 2014-08-07 17:53:30 +02:00
parent 03040de75a
commit 51f534c82e

View file

@ -881,10 +881,8 @@ class acp_profile
{
$field_ident = 'pf_' . $field_ident;
$db_tools = new \phpbb\db\tools($db, true);
$field_intent_sql = $db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null));
$profile_sql[] = $field_intent_sql[0];
$db_tools = $phpbb_container->get('dbal.tools');
$db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null));
}
$sql_ary = array(