Bug 42453: Remove warning

[WARN] Use of uninitialized value $index_count in numeric ne (!=) at /kohadevbox/koha/about.pl line 899.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2026-05-04 13:51:36 +02:00 committed by Pedro Amorim
parent a1f8f35b70
commit d77897c203
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 1 additions and 1 deletions

View File

@ -873,7 +873,7 @@ sub elasticsearch_check {
my $es = Search::Elasticsearch->new($es_conf);
foreach my $index (@indexes) {
my $index_count;
my $index_count = 0;
try {
$index_count = $es->indices->stats( index => $index )->{_all}{primaries}{docs}{count};
} catch {