Skip to content
Snippets Groups Projects
Commit e0ac4aa8 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Sql_lib: fixed typo

parent 4ce3093d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment