Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Koha::AudioAlerts->find($id)->move($where);
}
-$template->param( audio_alerts => scalar Koha::AudioAlerts->search() );
+$template->param( AudioAlerts => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
output_html_with_http_headers $cgi, $cookie, $template->output;
</script>
[% END %]
-[% IF Koha.Preference('AudioAlerts') %]
+[% IF Koha.Preference('AudioAlerts') || AudioAlerts %]
<script type="text/javascript">
//<![CDATA[
var AUDIO_ALERT_PATH = '[% interface %]/[% theme %]/sound/';