diff --git a/src/entities/RequestHandler.ts b/src/entities/RequestHandler.ts index 9ec4bbf..9948aef 100644 --- a/src/entities/RequestHandler.ts +++ b/src/entities/RequestHandler.ts @@ -104,7 +104,7 @@ export class RequestHandler { const param = this.getPostParam(name); if(param == undefined) { - if(!fallback) + if(fallback == undefined) this.error(400, "Missing integer '"+name+"' in the request!"); return fallback; }