Handle the case of an empty field name when adding user profile fields. Fixes bug #11715.

This commit is contained in:
Colin Kuskie 2010-07-13 09:48:09 -07:00
parent fd153b80e9
commit fd834a5384
3 changed files with 21 additions and 1 deletions

View file

@ -170,7 +170,7 @@ sub create {
# Add the column to the userProfileData table
$db->write(
"ALTER TABLE userProfileData ADD " . $db->dbh->quote_identifier($fieldName)
"ALTER TABLE userProfileData ADD " . $db->dbh->quote_identifier($id)
. $dbDataType
);