Skip to content
Permalink
Browse files
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 899e7765a69b72afb784d691469ebf4061eab22b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;

0 comments on commit 899e776

Please sign in to comment.