mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
- Some profile stuff :D
- Some DB stuff :D git-svn-id: file:///svn/phpbb/trunk@6180 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3a883600e8
commit
0bc61ae76c
5 changed files with 9 additions and 6 deletions
|
@ -945,6 +945,9 @@ class acp_profile
|
||||||
|
|
||||||
if ($action == 'create')
|
if ($action == 'create')
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$field_ident = '_' . $field_ident;
|
||||||
|
|
||||||
switch (SQL_LAYER)
|
switch (SQL_LAYER)
|
||||||
{
|
{
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
|
|
|
@ -113,7 +113,7 @@ class dbal_firebird extends dbal
|
||||||
|
|
||||||
if (!$this->transaction)
|
if (!$this->transaction)
|
||||||
{
|
{
|
||||||
@ibase_commit_ret();
|
@ibase_commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cache_ttl && method_exists($cache, 'sql_save'))
|
if ($cache_ttl && method_exists($cache, 'sql_save'))
|
||||||
|
|
|
@ -278,7 +278,7 @@ class dbal_oracle extends dbal
|
||||||
// OCI->CLOB?
|
// OCI->CLOB?
|
||||||
if (is_object($value))
|
if (is_object($value))
|
||||||
{
|
{
|
||||||
$value = ($value->size()) ? $value->read($value->size()) : '';
|
$value = ociloadlob($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result_row[strtolower($key)] = $value;
|
$result_row[strtolower($key)] = $value;
|
||||||
|
|
|
@ -91,7 +91,7 @@ class dbal_postgres extends dbal
|
||||||
{
|
{
|
||||||
$version = @pg_version($this->db_connect_id);
|
$version = @pg_version($this->db_connect_id);
|
||||||
|
|
||||||
return 'PostgresSQL' . ((!empty($version)) ? ' ' . $version['client'] : '');
|
return 'PostgreSQL' . ((!empty($version)) ? ' ' . $version['client'] : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -286,8 +286,8 @@ class custom_profile
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$cp_data[$row['field_ident']] = $this->get_profile_field($row);
|
$cp_data['_' . $row['field_ident']] = $this->get_profile_field($row);
|
||||||
$check_value = $cp_data[$row['field_ident']];
|
$check_value = $cp_data['_' . $row['field_ident']];
|
||||||
|
|
||||||
if (($cp_result = $this->validate_profile_field($row['field_type'], $check_value, $row)) !== false)
|
if (($cp_result = $this->validate_profile_field($row['field_type'], $check_value, $row)) !== false)
|
||||||
{
|
{
|
||||||
|
@ -382,7 +382,7 @@ class custom_profile
|
||||||
{
|
{
|
||||||
foreach ($field_data as $user_id => $row)
|
foreach ($field_data as $user_id => $row)
|
||||||
{
|
{
|
||||||
$user_fields[$user_id][$used_ident]['value'] = $row[$used_ident];
|
$user_fields[$user_id][$used_ident]['value'] = $row['_' . $used_ident];
|
||||||
$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
|
$user_fields[$user_id][$used_ident]['data'] = $this->profile_cache[$used_ident];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue