projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
146c3b3
)
harmless, but don't do a string comparison on numbers anyway, RT#79825
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 17 Jul 2018 01:41:56 +0000
(18:41 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 17 Jul 2018 01:41:56 +0000
(18:41 -0700)
FS/FS/svc_IP_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_IP_Mixin.pm
b/FS/FS/svc_IP_Mixin.pm
index
c89245f
..
d282611
100644
(file)
--- 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 ) {
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';
return '';
} else {
return 'Router '.$router->routername.' not available for this service';