fix mistake in WebGUI::Test

This commit is contained in:
Graham Knop 2010-06-10 08:25:03 -05:00
parent 4c18ba3563
commit 8c2c2f0a8d

View file

@ -139,6 +139,8 @@ If true, the session won't be registered for automatic deletion.
=cut
sub newSession {
shift
if eval { $_[0]->isa($CLASS) };
my $noCleanup = shift;
my $pseudoRequest = WebGUI::PseudoRequest->new;
require WebGUI::Session;
@ -885,7 +887,7 @@ This is a class method.
my @guarded;
sub addToCleanup {
shift
if try { $_[0]->isa($CLASS) };
if eval { $_[0]->isa($CLASS) };
push @guarded, cleanupGuard(@_);
}