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: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a508813f8b)
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
This commit is contained in:
Jonathan Druart 2026-05-04 13:51:36 +02:00 committed by Baptiste Wojtkowski
parent b34060d5e0
commit 4629875a54
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,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 {