<%= @splunkadmin %>
<% if @type  == 'search' and @localusers != :undef then -%>
<%     localusers.each do |user| -%>
<%= user %>
<%     end -%>
<% end -%>

<%= @splunkadmin %>
<% if @type  == 'search' and @localusers then -%>
<%     @localusers.each do |user| -%>
<%= user %>
<%     end -%>
<% end -%>

Fix comparison of @localusers to undef for puppet3.7/ruby1.8
Fix comparison of @localusers to undef for puppet3.7/ruby1.8

Catalog compilation fails with puppet 3.7 on ruby 1.8 (centos6) with
error calling .each on undef, due to failing comparison of @localusers
to :undef. Replace witha simple truthyness test of @localusers.
