fix gov list filtering bug (#1353)
This commit is contained in:
parent
6d2cc99e35
commit
f59bd434ad
@ -544,7 +544,7 @@ UniValue gobject(const UniValue& params, bool fHelp)
|
||||
// GET MAIN PARAMETER FOR THIS MODE, VALID OR ALL?
|
||||
|
||||
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")
|
||||
return "Invalid mode, should be 'valid' or 'all'";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user