Fixed handling of undef @forward

Changed @forward check syntax to use "<%- if @variable and @variable !=
'' -%>" to address undef.
This commit is contained in:
Hossy923 2016-11-05 10:09:53 -05:00
parent 89751eea38
commit a19df9cd9e

View File

@ -21,7 +21,7 @@ options {
<%- end -%>
};
<%- end -%>
<%- if @forward != '' -%>
<%- if @forward and @forward != '' -%>
forward <%= @forward %>;
<%- end -%>
auth-nxdomain <%= @auth_nxdomain ? 'yes' : 'no' %>;