Skip to content

Commit

Permalink
Merge pull request #3630 from matecat/fix-Analysis-Status-api
Browse files Browse the repository at this point in the history
Fixed null value for match type ( because of a previous bug )
  • Loading branch information
Ostico authored Oct 15, 2024
2 parents c72a3da + 7a91a88 commit 5ddc7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Model/Analysis/AbstractStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function loadObjects() {
}
// Runtime Initialization Completed

$matchType = MatchConstants::toExternalMatchTypeValue( $segInfo[ 'match_type' ] );
$matchType = MatchConstants::toExternalMatchTypeValue( $segInfo[ 'match_type' ] ?? 'NEW' );

// increment file totals
$file->incrementRaw( $segInfo[ 'raw_word_count' ] );
Expand Down

0 comments on commit 5ddc7f7

Please sign in to comment.