fix view of unlinked phone numbers, RT#29070
[freeside.git] / FS / FS / location_Mixin.pm
index d457386..d32b4a3 100644 (file)
@@ -36,7 +36,7 @@ Returns the label of the location object (see L<FS::cust_location>).
 
 sub location_label {
   my $self = shift;
-  my $object = $self->cust_location_or_main;
+  my $object = $self->cust_location_or_main or return '';
   $object->location_label(@_);
 }