[TASK] Empty strings are now considered missing parameter.
This commit is contained in:
parent
f72d126589
commit
bf09e0f837
|
@ -8,6 +8,9 @@ exports.reqParamsGiven = function (keys, obj) {
|
|||
if(value == undefined) {
|
||||
return false;
|
||||
}
|
||||
if(typeof(value) == "string" && value == "") {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
Loading…
Reference in New Issue