From 0903f05a8fcb1a78988ff6a777a0a18dd71d51a6 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 10 Nov 2002 06:02:22 +0000 Subject: [PATCH] fixed a bug where scratch was allowing duplicates if value was 0. --- lib/WebGUI/Session.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {