Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jul 25, 2024
1 parent 803a8c3 commit 05cf342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/lucee/runtime/config/ConfigWebFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ else if (access >= SecurityManager.VALUE_1 && access <= SecurityManager.VALUE_10
else if (hasCS) config.setPSQL(configServer.getPSQL());

// Data Sources
Struct dataSources = ConfigWebUtil.getAsStruct("dataSources", root);
Struct dataSources = ConfigWebUtil.getAsStruct(root, false, "dataSources");
if (accessCount == -1) accessCount = dataSources.size();
if (dataSources.size() < accessCount) accessCount = dataSources.size();

Expand All @@ -2310,7 +2310,7 @@ else if (access >= SecurityManager.VALUE_1 && access <= SecurityManager.VALUE_10
dataSource = Caster.toStruct(e.getValue(), null);
if (dataSource == null) continue;

if (dataSource.containsKey("database")) {
if (dataSource.containsKey(KeyConstants._database)) {
try {
// do we have an id?
jdbc = config.getJDBCDriverById(getAttr(dataSource, "id"), null);
Expand Down

0 comments on commit 05cf342

Please sign in to comment.