mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
- custom profile field fixed
- fixing sql_fetchfield from cache - changing the quote parser. In my tests i have not seen changed behaviour - but i might have broken something with this change. git-svn-id: file:///svn/phpbb/trunk@6232 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -494,7 +494,15 @@ class custom_profile
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return $this->options_lang[$field_id][$lang_id][(int) $value];
|
||||
$value = (int) $value;
|
||||
|
||||
// User not having a value assigned
|
||||
if (!isset($this->options_lang[$field_id][$lang_id][$value]))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return $this->options_lang[$field_id][$lang_id][$value];
|
||||
break;
|
||||
|
||||
case 'bool':
|
||||
|
Reference in New Issue
Block a user