Bug 22739: Test SelfCheckInTimeout <> 0, not just defined
[koha.git] / opac / sci / sci-main.pl
index b76179e..84d2a6c 100755 (executable)
@@ -94,7 +94,7 @@ if ( $op eq 'check_in' ) {
 }
 
 # Make sure timeout has a reasonable value
-my $timeout = C4::Context->preference('SelfCheckInTimeout') // 120;
+my $timeout = C4::Context->preference('SelfCheckInTimeout') || 120;
 $template->param( refresh_timeout => $timeout );
 
 output_html_with_http_headers $cgi, $cookie, $template->output, undef, { force_no_caching => 1 };