Remove deprecated use of defined() on hashes.
This commit is contained in:
parent
1db4a7f916
commit
67c66c87b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue