Skip to content

Commit

Permalink
fixed unscoped variable
Browse files Browse the repository at this point in the history
unscoped variable in query loop causes error on Railo when strict scoping is used
  • Loading branch information
d1rtym0nk3y committed Jul 25, 2012
1 parent baa7a20 commit 5b72797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javaloader/JavaLoader.cfc
Expand Up @@ -478,11 +478,11 @@ Purpose: Utlitity class for loading Java Classes
<cfdirectory action="list" name="qJars" directory="#path#" filter="*.jar" sort="name desc"/>
<cfloop query="qJars">
<cfscript>
libName = ListGetAt(name, 1, "-");
libName = ListGetAt(qJars.name, 1, "-");
//let's not use the lib's that have the same name, but a lower datestamp
if(NOT ListFind(jarList, libName))
{
ArrayAppend(aJars, path & "/" & name);
ArrayAppend(aJars, path & "/" & qJars.name);
jarList = ListAppend(jarList, libName);
}
</cfscript>
Expand Down

0 comments on commit 5b72797

Please sign in to comment.