1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 12:30:42 +02:00
git-svn-id: file:///svn/phpbb/trunk@6213 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2006-07-28 03:45:32 +00:00
parent 22d778fcff
commit b8076c575c
2 changed files with 12 additions and 1 deletions

View File

@@ -779,7 +779,14 @@ class custom_profile
$sql_not_in = array();
foreach ($cp_data as $key => $null)
{
$sql_not_in[] = "'" . $db->sql_escape($key) . "'";
if (strncmp($key, '_', 1) === 0)
{
$sql_not_in[] = "'" . $db->sql_escape(substr($key, 1)) . "'";
}
else
{
$sql_not_in[] = "'" . $db->sql_escape($key) . "'";
}
}
$sql = 'SELECT f.field_type, f.field_ident, f.field_default_value, l.lang_default_value