[fix] Empty directory path and crash on TextWidget (#5606)

This commit is contained in:
Robert
2019-11-19 21:06:03 +01:00
committed by Frans de Jonge
parent 7775233688
commit 03fda96041
4 changed files with 8 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ end
function BookStatusWidget:getStatDays()
if stats_book.days then
return stats_book.days
return tostring(stats_book.days)
else
return _("N/A")
end