diff --git a/lib/WebGUI/Persistent.pm b/lib/WebGUI/Persistent.pm index 0413b8a77..fd0613d15 100644 --- a/lib/WebGUI/Persistent.pm +++ b/lib/WebGUI/Persistent.pm @@ -405,7 +405,7 @@ sub new { ); my $query = $select->buildQuery(); my $hash = WebGUI::SQL->quickHashRef($query); - return undef unless %$hash; + return undef unless defined %$hash; return bless {_property => $hash,_noSet => $noSet}, $class; } }