allow console.pl to work in older browsers
[spider.git] / perl / DXChannel.pm
index 61e6a5d3e9dd31dd2ac094d7e34ce168c8248256..c4a81c7f509b503a9c3025217f2a3f80b45c5177 100644 (file)
@@ -508,7 +508,8 @@ sub rspfcheck
        if ($nref) {
            if ($nref->dxchan == $self) {
                        return 1 unless $user;
-                       return 1 if grep $user eq $_, $nref->users;
+                       my @users = $nref->users;
+                       return 1 if @users == 0 || grep $user eq $_, @users;
                        dbg("RSPF: $user not on $node") if isdbg('rspf');
                } else {
                        dbg("RSPF: Shortest path for $node is " . $nref->dxchan->{call}) if isdbg('rspf');