mirror of https://github.com/calzoneman/sync.git
Fix channel MySQL rank lookup fail (Again?)
This commit is contained in:
parent
79bdca3d90
commit
873603465c
|
@ -172,6 +172,8 @@ Channel.prototype.getRank = function(name) {
|
|||
.replace(/\{1\}/, this.name)
|
||||
.replace(/\{2\}/, name);
|
||||
var results = db.querySync(query);
|
||||
if(!results)
|
||||
return Rank.Guest;
|
||||
var rows = results.fetchAllSync();
|
||||
if(rows.length == 0) {
|
||||
return Rank.Guest;
|
||||
|
|
Loading…
Reference in New Issue