Commit 7eaf7e9c authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Fixed bug in fetch_all_by_Transcript() found by Amonida.

parent cd77c210
......@@ -112,9 +112,9 @@ sub fetch_all_by_Transcript {
}
# Get the canonical translation.
my $translations = $self->fetch_by_Transcript($transcript);
my $translations = [ $self->fetch_by_Transcript($transcript) ];
if ( !defined($translations) ) {
if ( scalar( @{$translations} ) == 0 ) {
return [];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment