From e0ac4aa801e6f37178bfdde91f10b36d61efb2d5 Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Fri, 21 Feb 2020 15:00:28 +0100
Subject: [PATCH] Sql_lib: fixed typo

---
 process/Sql_lib/process.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js
index baa6677781..b07b9e7503 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)
                 {
-- 
GitLab