X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6dc9c1d9139d4db29eb4bafb8a3d5f57c8282e69..d7f3d531eb80c72495f2491764fab2b74db4eb35:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index f9ff507eb..7cf800805 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1447,9 +1447,9 @@ SQL from => 'ShopOrder', via => ['DeliveryOrder','Order',], ); - if (scalar @linked_shop_orders == 1){ #do update my $shop_order = $linked_shop_orders[0][0]; + if ( $shop_order ) { require SL::Shop; my $shop_config = SL::DB::Manager::Shop->get_first( query => [ id => $shop_order->shop_id ] ); my $shop = SL::Shop->new( config => $shop_config );