Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

jsonrpc: fix handling of default sort method "none"

  • Loading branch information...
commit 9a59019d80354edf8f267ad5e8837efc45326e56 1 parent a9a6ad6
@Montellese authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/interfaces/json-rpc/JSONUtils.h
View
5 xbmc/interfaces/json-rpc/JSONUtils.h
@@ -95,19 +95,20 @@ namespace JSONRPC
StringUtils::ToLower(method);
StringUtils::ToLower(order);
+ // parse the sort attributes
sortAttributes = SortAttributeNone;
if (parameterObject["sort"]["ignorearticle"].asBoolean())
sortAttributes = SortAttributeIgnoreArticle;
else
sortAttributes = SortAttributeNone;
+ // parse the sort order
sortOrder = SortUtils::SortOrderFromString(order);
if (sortOrder == SortOrderNone)
return false;
+ // parse the sort method
sortBy = SortUtils::SortMethodFromString(method);
- if (sortBy == SortByNone)
- return false;
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.