projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes für das "my $var if $cond;" pattern.
[kivitendo-erp.git]
/
SL
/
DO.pm
diff --git
a/SL/DO.pm
b/SL/DO.pm
index
5b5cf1d
..
0d2a5ec
100644
(file)
--- a/
SL/DO.pm
+++ b/
SL/DO.pm
@@
-408,7
+408,7
@@
sub mark_orders_if_delivered {
'to_table' => 'delivery_orders',
'to_id' => $params{do_id});
- my
($oe_id) = $links[0]->{from_id} if (scalar @links)
;
+ my
$oe_id = @links ? $links[0]->{from_id} : undef
;
return $main::lxdebug->leave_sub() if (!$oe_id);