Skip to content

Commit

Permalink
Handle null in API Search better
Browse files Browse the repository at this point in the history
  • Loading branch information
da3dsoul committed Aug 4, 2018
1 parent 17ebf61 commit f5cc9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v2/Modules/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ private object SearchForSerie()
//hardcoded
para.limit = 100;
}
if (para.query != string.Empty)
if (string.IsNullOrEmpty(para.query))
{
return Search(para.query, para.limit, para.limit_tag, (int) para.offset, para.tags, user.JMMUserID,
para.nocast != 0, para.notag != 0, para.level, para.all != 0, para.fuzzy != 0, para.allpics != 0, para.pic, para.tagfilter);
Expand Down

0 comments on commit f5cc9a9

Please sign in to comment.