Commit d97642ac authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Warnings avoidance, if LoadByName is called without a Queue

parent 3f34d45f
......@@ -185,7 +185,7 @@ sub LoadByName {
my $queue = $args{'Queue'};
if ( blessed $queue ) {
$queue = $queue->id;
} elsif ( $queue =~ /\D/ ) {
} elsif ( defined $queue and $queue =~ /\D/ ) {
my $tmp = RT::Queue->new( $self->CurrentUser );
$tmp->Load($queue);
$queue = $tmp->id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment