summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-07-16 18:41:56 -0700
committerIvan Kohler <ivan@freeside.biz>2018-07-16 18:41:56 -0700
commit25b3db5f07ae23cf0c39dbb77b955687eca14cf4 (patch)
treeb47ea701bf7a1d5d8b86909c285e6bbf6b849d0f /FS/FS
parent146c3b35ba82492af12700ea3dcec922a6ba05ae (diff)
harmless, but don't do a string comparison on numbers anyway, RT#79825
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/svc_IP_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_IP_Mixin.pm b/FS/FS/svc_IP_Mixin.pm
index c89245fe2..d28261141 100644
--- a/FS/FS/svc_IP_Mixin.pm
+++ b/FS/FS/svc_IP_Mixin.pm
@@ -80,7 +80,7 @@ sub svc_ip_check {
my $error = $self->ip_check;
return $error if $error;
if ( my $router = $self->router ) {
- if ( grep { $_->routernum eq $router->routernum } $self->allowed_routers ) {
+ if ( grep { $_->routernum == $router->routernum } $self->allowed_routers ) {
return '';
} else {
return 'Router '.$router->routername.' not available for this service';