fixed gh-85 to insure parameter 2 is an array

This commit is contained in:
Dev
2017-05-28 23:44:15 +02:00
parent cb355feaf4
commit 5e36ede2ac
209 changed files with 365 additions and 343 deletions

View File

@ -6918,7 +6918,7 @@ class Interpretation extends Fields
$query .= PHP_EOL."\t\t\t\t\tif (isset(\$item->".$field.") && ".$this->fileContentStatic['###Component###']."Helper::checkJson(\$item->".$field."))";
$query .= PHP_EOL."\t\t\t\t\t{";
$query .= PHP_EOL."\t\t\t\t\t\t\$tmpArray = json_decode(\$item->".$field.",true);";
$query .= PHP_EOL."\t\t\t\t\t\tif (!in_array(\$this->".$globalKey.", \$tmpArray['".$target."']))";
$query .= PHP_EOL."\t\t\t\t\t\tif (!isset(\$tmpArray['".$target."']) || !".$this->fileContentStatic['###Component###']."Helper::checkArray(\$tmpArray['".$target."']) || !in_array(\$this->".$globalKey.", \$tmpArray['".$target."']))";
$query .= PHP_EOL."\t\t\t\t\t\t{";
$query .= PHP_EOL."\t\t\t\t\t\t\tunset(\$items[\$nr]);";
$query .= PHP_EOL."\t\t\t\t\t\t\tcontinue;";

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage headercheck.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage batch_.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage indenter.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage js.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.4.6
@build 20th May, 2017
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage minify.php