Remove deprecated use of defined() on hashes.

This commit is contained in:
Colin Kuskie 2009-11-16 16:30:56 -08:00
parent 1db4a7f916
commit 67c66c87b3

View file

@ -190,7 +190,7 @@ sub new {
WebGUI::Error::InvalidObject->throw(expected=>'WebGUI::Session', got=>(ref $session), error=>'Need a session.');
}
# Set class definition unless new() is called by create() in which case definition is already set.
unless (defined %definition){
unless (%definition){
unless (defined $thingId && $thingId =~ m/^[A-Za-z0-9_-]{22}$/) {
WebGUI::Error::InvalidParam->throw(error=>'need a thingId');
}