summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/mx-record.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/mx-record.erb b/templates/mx-record.erb
index 23b3a81..7712578 100644
--- a/templates/mx-record.erb
+++ b/templates/mx-record.erb
@@ -1,4 +1,4 @@
-<% if ttl -%>
+<% if @ttl -%>
<%=@owner%> <%=@ttl%> IN MX <%=@priority%> <%=@host%>
<% else -%>
<%=@owner%> IN MX <%=@priority%> <%=@host%>