Fixed a bug where posting to a discussion would temporarily set your userId to "Visitor"

This commit is contained in:
JT Smith 2002-06-01 18:21:01 +00:00
parent bb965ae781
commit 97d4de7b81

View file

@ -180,7 +180,7 @@ sub postSave {
$session{form}{subject} .= ' '.WebGUI::International::get(233);
}
if ($session{form}{mid} eq "new") {
if ($session{user}{userId} = 1) {
if ($session{user}{userId} == 1) {
if ($session{form}{visitorName} eq "") {
$username = $session{user}{username};
} else {