fixed gh-312 that caused an error when creating a new component.

This commit is contained in:
2018-07-07 00:01:30 +02:00
parent 1a19a510dc
commit 2b39af94a2
4 changed files with 7 additions and 4 deletions

View File

@ -193,7 +193,7 @@ class ComponentbuilderModelAjax extends JModelList
}
return $result;
}
protected function hasCurl()
{
return function_exists('curl_version');

View File

@ -1184,7 +1184,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
}
// we check if component should be build from sql file
ComponentbuilderHelper::dynamicBuilder($data, 1);
if (isset($data['buildcomp']) && 1 == $data['buildcomp'])
{
ComponentbuilderHelper::dynamicBuilder($data, 1);
}
// Set the Params Items to data
if (isset($data['params']) && is_array($data['params']))