From: Sven Schöling Date: Fri, 29 May 2015 12:54:51 +0000 (+0200) Subject: DBUpgrade2: Warnings in Tests unterdrücken X-Git-Tag: release-3.3.0beta~74 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=40eb5e8b575ed7baa75554cda4a3096e04395d9b;p=kivitendo-erp.git DBUpgrade2: Warnings in Tests unterdrücken --- diff --git a/sql/Pg-upgrade2/umstellung_eur.pl b/sql/Pg-upgrade2/umstellung_eur.pl index cf93d76c6..0b8840079 100644 --- a/sql/Pg-upgrade2/umstellung_eur.pl +++ b/sql/Pg-upgrade2/umstellung_eur.pl @@ -30,7 +30,7 @@ sub run { # check current configuration and set default variables accordingly, so that # kivitendo behaviour isn't changed by this update - if ($::lx_office_conf{system}->{eur} == 0 ) { + if (!defined $::lx_office_conf{system}->{eur} || $::lx_office_conf{system}->{eur} == 0 ) { $accounting_method = 'accrual'; $inventory_system = 'perpetual'; $profit_determination = 'balance';