diff --git a/APPL/API2/model_generic.inc b/APPL/API2/model_generic.inc index e9893b9a46..e42d10a72b 100644 --- a/APPL/API2/model_generic.inc +++ b/APPL/API2/model_generic.inc @@ -235,6 +235,8 @@ function model_generic(table, autfunction) oRs.MoveNext(); } oRs.Close(); + if (!model.nrfields) + abort_with_warning("No columns found for {0}".format(table)); // voorkomt ook latere sql-injection op tabelnaam api2.generic_REST(model);