Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bugfix : Added check for whether database row is set before doing a U…
…TF-8 decode.
  • Loading branch information
Jiadi Yao committed Nov 20, 2015
1 parent d9dc16a commit 899e776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl_lib/EPrints/MetaField/Id.pm
Expand Up @@ -47,7 +47,7 @@ sub value_from_sql_row

if( $session->{database}->{dbh}->{Driver}->{Name} eq "mysql" )
{
utf8::decode( $row->[0] );
utf8::decode( $row->[0] ) if defined($row) && defined($row->[0]);
}

return shift @$row;
Expand Down

0 comments on commit 899e776

Please sign in to comment.