#584 fix for case where port has no corresponding properties row
This commit is contained in:
@@ -219,7 +219,8 @@ Returns true if the C<$port> L<DBIx::Class> object has a phone connected.
|
||||
=cut
|
||||
|
||||
sub port_has_phone {
|
||||
return (shift)->properties->remote_is_phone;
|
||||
my $properties = (shift)->properties;
|
||||
return ($properties ? $properties->remote_is_phone : undef);
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user