shit
This commit is contained in:
parent
d998cfb26d
commit
e53573c28a
|
@ -231,7 +231,7 @@ self.getcfg = (kat, cb) => {
|
||||||
// main, websrv, irc
|
// main, websrv, irc
|
||||||
var out = {};
|
var out = {};
|
||||||
self.sql.query("select * from `f0ck`.`cfg` where `class` = ?"+(arguments[2]?" && `key` = '"+arguments[2]+"'":""), kat, (err, rows) => {
|
self.sql.query("select * from `f0ck`.`cfg` where `class` = ?"+(arguments[2]?" && `key` = '"+arguments[2]+"'":""), kat, (err, rows) => {
|
||||||
if(err || !rows)
|
if(err || rows.length < 1)
|
||||||
cb(err);
|
cb(err);
|
||||||
else {
|
else {
|
||||||
rows.forEach(e => {
|
rows.forEach(e => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user