diff options
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/svc_hardware.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm index 5b81a9c2b..96a8e762b 100644 --- a/FS/FS/svc_hardware.pm +++ b/FS/FS/svc_hardware.pm @@ -112,7 +112,12 @@ sub search_sql { $hex =~ s/\W//g; push @where, 'svc_hardware.hw_addr LIKE \'%'.$hex.'%\''; } - '(' . join(' OR ', @where) . ')'; + + if ( @where ) { + '(' . join(' OR ', @where) . ')'; + } else { + '1 = 0'; #false + } } sub label { |