diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index baa6677781ccac0bb18627aad1ad4275fbf2062e..b07b9e75034a620e2cbfc8fceb6bdc84dcd681fe 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -1487,7 +1487,7 @@ SqlBuilder.prototype._addWhere = function(pFieldOrCond, pValue, pMandatory, pCon if (pValue instanceof SqlBuilder || Array.isArray(pValue) || (typeofValue == "string" && (pFieldOrCond == undefined || pFieldOrCond == null))) { // check if the array is really a value-array for an in and not a prepared statement - if (Array.isArray(pValue) && (pValue.lenght <= 1 || !Array.isArray(pValue[1]))) + if (Array.isArray(pValue) && (pValue.length <= 1 || !Array.isArray(pValue[1]))) { if (pValue.length == 0) {