Skip to content

Commit 6e76728

Browse files
committed
fix: added a check to verify the array size for smsdevices
1 parent c7c531d commit 6e76728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/zabbix_server.conf.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ LoadModulePath=<%= @loadmodulepath %>
962962
# Mandatory: no
963963
# Default:
964964
# SMSDevices=
965-
<% if @smsdevices -%>
965+
<% if @smsdevices.length > 0 -%>
966966
SMSDevices=<%= @smsdevices.join(',') -%><% end -%>
967967
<% end -%>
968968

0 commit comments

Comments
 (0)