From: Bernd Bleßmann Date: Fri, 24 Jan 2020 16:04:18 +0000 (+0100) Subject: S:D:Manager:ReconciliationLink: nicht initialisierter Wert: Warnungen vermeiden X-Git-Tag: release-3.5.6.1~389 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c63ec91efe68a157be6eba097729c8cbe27b4fc8;p=kivitendo-erp.git S:D:Manager:ReconciliationLink: nicht initialisierter Wert: Warnungen vermeiden Durch Tests getriggert, konkret: durch t/bank/bank_transactions.t --- 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;