fix gov list filtering bug (#1353)

This commit is contained in:
UdjinM6 2017-02-19 20:55:37 +04:00 committed by Holger Schinzel
parent 6d2cc99e35
commit f59bd434ad

View File

@ -544,7 +544,7 @@ UniValue gobject(const UniValue& params, bool fHelp)
// GET MAIN PARAMETER FOR THIS MODE, VALID OR ALL? // GET MAIN PARAMETER FOR THIS MODE, VALID OR ALL?
std::string strShow = "valid"; std::string strShow = "valid";
if (params.size() == 2) strShow = params[1].get_str(); if (params.size() >= 2) strShow = params[1].get_str();
if (strShow != "valid" && strShow != "all") if (strShow != "valid" && strShow != "all")
return "Invalid mode, should be 'valid' or 'all'"; return "Invalid mode, should be 'valid' or 'all'";