diff --git a/lib/NGCP/Panel/Utils/Subscriber.pm b/lib/NGCP/Panel/Utils/Subscriber.pm index 83999a106e..5cab5a6634 100644 --- a/lib/NGCP/Panel/Utils/Subscriber.pm +++ b/lib/NGCP/Panel/Utils/Subscriber.pm @@ -1543,7 +1543,7 @@ sub update_subscriber_numbers { $alias->{e164}->{is_devid} = delete $alias->{is_devid}; } - if (defined $current_primary_number && $current_primary_number == $cli) { + if (defined $current_primary_number && $current_primary_number eq $cli) { die "alias '" . $c->qs($cli) . "' is already defined as the primary number"; }