diff options
-rw-r--r-- | xbmc/utils/SortUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/SortUtils.cpp b/xbmc/utils/SortUtils.cpp index 9e7eebcef3..655b1dde1a 100644 --- a/xbmc/utils/SortUtils.cpp +++ b/xbmc/utils/SortUtils.cpp @@ -195,7 +195,7 @@ string ByYear(SortAttribute attributes, const SortItem &values) { CStdString label; const CVariant &airDate = values.at(FieldAirDate); - if (!airDate.isNull()) + if (!airDate.isNull() && !airDate.asString().empty()) label = airDate.asString() + " "; label += StringUtils::Format("%i %s", (int)values.at(FieldYear).asInteger(), ByLabel(attributes, values).c_str()); |