Fix gh-249 that caused the admin views to break in PHP 7.2 We also added VDM package import to the import of JCB packages

This commit is contained in:
2018-03-21 04:45:51 +02:00
parent 1c8129eec7
commit baba793def
13 changed files with 379 additions and 65 deletions

View File

@ -1226,10 +1226,10 @@ class ComponentbuilderModelAjax extends JModelList
}
// if string (fields)
if (!$found && 'xml' === $key && ComponentbuilderHelper::checkString($item->{$key})
&& strpos($item->{$key}, 'fields="') !== false)
&& strpos($item->{$key}, $target.'="') !== false)
{
// now get the fields between
$_fields = ComponentbuilderHelper::getBetween($item->{$key}, 'fields="', '"');
$_fields = ComponentbuilderHelper::getBetween($item->{$key}, $target.'="', '"');
// check the result
if (ComponentbuilderHelper::checkString($_fields))
{