diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index d8b71d11c..9d751c082 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -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 {