Bail on channel rank listing if unregistered
This commit is contained in:
parent
7e4dc5a569
commit
4a14dbc89f
|
@ -418,6 +418,10 @@ function listChannelRanks(chan) {
|
|||
return [];
|
||||
}
|
||||
|
||||
if(!chan.registered) {
|
||||
return [];
|
||||
}
|
||||
|
||||
var query = createQuery(
|
||||
"SELECT * FROM `?` WHERE 1",
|
||||
["chan_"+chan+"_ranks"]
|
||||
|
|
Loading…
Reference in a new issue