diff --git a/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java b/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java index 0bcaece0a4..a835631eeb 100644 --- a/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java +++ b/core/src/main/java/lucee/runtime/config/ConfigWebFactory.java @@ -4689,7 +4689,7 @@ private static void _loadSearch(ConfigServer configServer, ConfigImpl config, St private static void _loadScheduler(ConfigServer configServer, ConfigImpl config, Struct root, Log log) { try { if (config instanceof ConfigServer) { - short mode = ((ConfigServerImpl) config).getAdminMode(); + short mode = config.getAdminMode(); // short mode = ConfigWebUtil.toAdminMode(getAttr(root, "mode"), ConfigImpl.ADMINMODE_SINGLE); if (mode == ConfigImpl.ADMINMODE_MULTI) return; } @@ -4885,7 +4885,7 @@ private static void _loadDebug(ConfigServerImpl configServer, ConfigImpl config, // max records logged String strMax = getAttr(root, "debuggingMaxRecordsLogged"); - if (StringUtil.isEmpty(str)) str = getAttr(root, "debuggingShowMaxRecordsLogged"); + if (StringUtil.isEmpty(strMax)) strMax = getAttr(root, "debuggingShowMaxRecordsLogged"); if (hasAccess && !StringUtil.isEmpty(strMax)) { config.setDebugMaxRecordsLogged(Caster.toIntValue(strMax, 10)); }