Skip to content

Commit

Permalink
Fix issue Undefined array key "custom" in Template.php #756
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Aug 15, 2024
1 parent 013c0ce commit 8027bad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion framework/library/astroid/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public function getThemeVariables()

$danger = $this->params->get('theme_danger', '');
if (!empty($danger)) {
$variables['danger'] = $variables[$danger];
$variables['danger'] = ($danger == 'custom' ? $this->params->get('theme_danger_custom', $variables['red']) : $variables[$danger]);
}

Expand Down

2 comments on commit 8027bad

@Jeremias5009
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

como solucionar este error \www----\libraries\astroid\framework\library\astroid\Template.php on line 175,
tengo joomla 5.1.4 astroid 3.1.1 y template astroid zero 3.0.12

@sonvnn
Copy link
Member Author

@sonvnn sonvnn commented on 8027bad Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update to 3.1.2 to fix this issue

Please sign in to comment.