Skip to content

Commit 6133667

Browse files
committed
Fixed email logging in CF8
1 parent f992792 commit 6133667

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bonus/LogToEmail.cfc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
<cffunction name="saveLog">
1515
<cfargument name="exception" />
1616

17+
<cfset var local = StructNew() />
18+
1719
<cfset variables.config = removeEmailPrefix(variables.config)>
1820

1921
<!--- to conform to the cfmail attribute name and be backward compatible with emailSubj --->
2022
<cfset variables.config.subject = variables.config.subj>
2123

22-
<cfset var attributeCollection = variables.config>
24+
<cfset local.attributeCollection = variables.config>
2325

24-
<cfmail attributeCollection="#attributeCollection#">
26+
<cfmail attributeCollection="#local.attributeCollection#">
2527
<cfif variables.config.type eq "text">
2628
Exception Report
2729

0 commit comments

Comments
 (0)