From: Sven Schöling Date: Wed, 1 Oct 2014 15:36:57 +0000 (+0200) Subject: PriceSource: Fehler, wenn noch keine Quellen disabled sind, behoben. X-Git-Tag: release-3.2.0beta~158 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=392e03652fbdbfd06d694e89bf7d00ead7d06dba;p=kivitendo-erp.git PriceSource: Fehler, wenn noch keine Quellen disabled sind, behoben. --- diff --git a/SL/PriceSource/ALL.pm b/SL/PriceSource/ALL.pm index 3d9813ef7..a15d6b690 100644 --- a/SL/PriceSource/ALL.pm +++ b/SL/PriceSource/ALL.pm @@ -18,7 +18,7 @@ my @price_sources_order = qw( ); sub all_enabled_price_sources { - my %disabled = map { $_ => 1 } @{ $::instance_conf->get_disabled_price_sources }; + my %disabled = map { $_ => 1 } @{ $::instance_conf->get_disabled_price_sources || [] }; map { $price_sources_by_name{$_} } grep { !$disabled{$_} } @price_sources_order; }