Variable undefined after latest patch for CF11
Hello, all,
We recently applied the most recent patch for CF11, and now we are being flooded with alert emails that a variable named "qRead" is undefined.
This is happening in a CFC function that gets distinct years from a database for news articles.
<cffunction name=icleYears" output="false" access="public" returntype="Query" >
<cfset qRead = "" />
<cfquery name="qRead" datasource="news_2016" cachedwithin="#CreateTimeSpan(0,0,10,0)#">
SELECT
DISTINCT TO_CHAR(TDATE,'YYYY') articleYears
FROM
pa_news
ORDER BY articleYears DESC
</cfquery>
<cfreturn qRead>
</cffunction>
Whenever this function is accessed, a vague error message appears to the user, and an email is generated basically stating that "qRead is undefined".
We just rolled back the patch, and everything works fine. Has anyone else experienced something like this?
V/r,
^ _ ^
