fixed a bug where scratch was allowing duplicates if value was 0.
This commit is contained in:
parent
273b0c06e6
commit
0903f05a8f
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ sub setCookie {
|
|||
|
||||
sub setScratch {
|
||||
return "" unless ($session{var}{sessionId});
|
||||
if ($session{scratch}{$_[0]}) {
|
||||
if ($session{scratch}{$_[0]} ne "") {
|
||||
WebGUI::SQL->write("update userSessionScratch set value=".quote($_[1])."
|
||||
where sessionId=".quote($session{var}{sessionId})." and name=".quote($_[0]));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue