From c63ec91efe68a157be6eba097729c8cbe27b4fc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 24 Jan 2020 17:04:18 +0100 Subject: [PATCH] S:D:Manager:ReconciliationLink: nicht initialisierter Wert: Warnungen vermeiden Durch Tests getriggert, konkret: durch t/bank/bank_transactions.t --- SL/DB/Manager/ReconciliationLink.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Manager/ReconciliationLink.pm b/SL/DB/Manager/ReconciliationLink.pm index 8f63a1cd1..76dc126c0 100644 --- a/SL/DB/Manager/ReconciliationLink.pm +++ b/SL/DB/Manager/ReconciliationLink.pm @@ -21,7 +21,7 @@ sub get_new_rec_group { my ($max) = selectfirst_array_query($::form, $class->object_class->init_db->dbh, $query); - return $max + 1; + return ($max // 0) + 1; } 1; -- 2.20.1