Fixed a bug where posting to a discussion would temporarily set your userId to "Visitor"
This commit is contained in:
parent
bb965ae781
commit
97d4de7b81
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue