This commit is contained in:
Flummi 2016-11-18 08:14:35 +01:00
parent 17b014c650
commit d998cfb26d

View File

@ -230,7 +230,7 @@ self.levelToModes = level => {
self.getcfg = (kat, cb) => {
// main, websrv, irc
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)
cb(err);
else {