From 2185848e6c35d55ed2f75be42abb23321fb66fa9 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 17 Feb 2004 10:07:19 +0000 Subject: [PATCH] Use getChildElement() rather than getNode() to check for an already existing user item in registerUser(). --- src/helma/framework/core/Application.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index 836c19a3..1619e43e 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -903,7 +903,7 @@ public final class Application implements IPathElement, Runnable { ArrayList list = new ArrayList(); INode users = getUserRoot(); - // first try to get them from subnodes (db) + // add all child nodes to the list for (Enumeration e = users.getSubnodes(); e.hasMoreElements();) { list.add(e.nextElement()); } @@ -973,7 +973,7 @@ public final class Application implements IPathElement, Runnable { try { INode users = getUserRoot(); - unode = users.getNode(uname); + unode = (INode) users.getChildElement(uname); if (unode != null) { return null;