From 0451af48ea123e30eaf41a28c47afc5e5865c983 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 13 Mar 2008 22:32:33 +0000 Subject: [PATCH] protect against database cache corruption --- lib/WebGUI/Cache/Database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Cache/Database.pm b/lib/WebGUI/Cache/Database.pm index 52b68efc1..3297d9d36 100644 --- a/lib/WebGUI/Cache/Database.pm +++ b/lib/WebGUI/Cache/Database.pm @@ -107,7 +107,7 @@ sub get { eval { $content = thaw($content); }; - return undef unless $content; + return undef unless $content && ref $content; return $$content; }