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

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 37 of this MVC
@build 3rd February, 2017
@version @update number 38 of this MVC
@build 28th May, 2017
@created 30th April, 2015
@package Component Builder
@subpackage field.php
@@ -206,7 +206,7 @@ class ComponentbuilderModelField extends JModelAdmin
if (isset($item->addfields) && ComponentbuilderHelper::checkJson($item->addfields))
{
$tmpArray = json_decode($item->addfields,true);
if (!in_array($this->addfieldsvvwd, $tmpArray['field']))
if (!isset($tmpArray['field']) || !ComponentbuilderHelper::checkArray($tmpArray['field']) || !in_array($this->addfieldsvvwd, $tmpArray['field']))
{
unset($items[$nr]);
continue;