Preventative measure for crash on invalid user.
This commit is contained in:
parent
15da25cded
commit
45dd8a849b
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ sub _getUserInfo {
|
||||||
}
|
}
|
||||||
%profile = WebGUI::SQL->buildHash("select userProfileField.fieldName, userProfileData.fieldData
|
%profile = WebGUI::SQL->buildHash("select userProfileField.fieldName, userProfileData.fieldData
|
||||||
from userProfileData, userProfileField where userProfileData.fieldName=userProfileField.fieldName
|
from userProfileData, userProfileField where userProfileData.fieldName=userProfileField.fieldName
|
||||||
and userProfileData.userId=$user{userId}", $_[1]);
|
and userProfileData.userId='$user{userId}'", $_[1]);
|
||||||
%user = (%user, %profile);
|
%user = (%user, %profile);
|
||||||
%default = WebGUI::SQL->buildHash("select fieldName, dataDefault from userProfileField where profileCategoryId=4", $_[1]);
|
%default = WebGUI::SQL->buildHash("select fieldName, dataDefault from userProfileField where profileCategoryId=4", $_[1]);
|
||||||
foreach $key (keys %default) {
|
foreach $key (keys %default) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue