updated the compiler to first check if array values is set

This commit is contained in:
2017-10-30 20:50:56 +02:00
parent ccb3f09a34
commit 306a9b9613
19 changed files with 551 additions and 709 deletions

View File

@ -888,8 +888,9 @@ class Get
}
// build update SQL
if ($old_component = $this->getHistoryWatch('joomla_component', $this->componentID) ||
$old_admin_views = $this->getHistoryWatch('component_admin_views', $component->addadmin_views_id))
$old_admin_views = $this->getHistoryWatch('component_admin_views', $component->addadmin_views_id);
$old_component = $this->getHistoryWatch('joomla_component', $this->componentID);
if ($old_component || $old_admin_views)
{
if (ComponentbuilderHelper::checkObject($old_admin_views))
{
@ -4385,10 +4386,10 @@ class Get
{
switch($commentType)
{
case 1:
case 1: // the PHP & JS type
$startReplace .= '/*'.$id.'*/';
break;
case 2:
case 2: // the HTML type
$startReplace .= '<!--'.$id.'-->';
break;
}