Skip to content

Commit

Permalink
Use proper syntax to reference a hash field
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Afanasyev committed Oct 8, 2016
1 parent baa569a commit db7b1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Serge/Engine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ sub update_database_from_ts_files_lang_file {

my $item_comment;
$self->run_callbacks('rewrite_parsed_ts_file_item', $relfile, $lang, $item_id,
\{$unit->{source}}, $unit->{flags}, \{$unit->{target}}, \{$unit->{comment}}, \{$unit->{fuzzy}}, \$item_comment);
\$unit->{source}, $unit->{flags}, \$unit->{target}, \$unit->{comment}, \$unit->{fuzzy}, \$item_comment);
if (defined $item_comment) { # it can be an empty string
$item_comment = undef if $item_comment eq ''; # normalize the empty value
my $item_props = $self->{db}->get_item_props($item_id);
Expand Down

0 comments on commit db7b1a3

Please sign in to comment.