diff --git a/framework/fields/astroidlayoutdata.php b/framework/fields/astroidlayoutdata.php index 5ed6bbb5..045a84ff 100644 --- a/framework/fields/astroidlayoutdata.php +++ b/framework/fields/astroidlayoutdata.php @@ -89,7 +89,7 @@ protected function getInput() { foreach ($section['rows'] as $row) { foreach ($row['cols'] as $col) { foreach ($col['elements'] as $element) { - if ($form_template[$element['type']]['info']['element_type'] == 'widget') { + if (isset($form_template[$element['type']]) && $form_template[$element['type']]['info']['element_type'] == 'widget') { $article_data = Path::clean(JPATH_SITE . '/media/templates/site/' . $article_layout->template . '/astroid/article_widget_data/'. $id . '_' . $element['id'] . '.json'); if (file_exists($article_data)) { $widget_data = file_get_contents($article_data);