This commit is contained in:
Flummi 2016-11-18 08:16:58 +01:00
parent d998cfb26d
commit e53573c28a

View File

@ -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 => {