Skip to content

Commit

Permalink
fixed issue with CSS from another module not working correctly when p…
Browse files Browse the repository at this point in the history
…assed to a form field
  • Loading branch information
David McReynolds committed Oct 23, 2014
1 parent 1bcfc08 commit 79cd472
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions fuel/modules/fuel/libraries/Form_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3551,12 +3551,9 @@ public function add_css($css = NULL, $key = NULL)
}
else
{
if (empty($key))
if (empty($key) AND !in_array($css, $this->css))
{
if (!in_array($css, $this->css))
{
$this->css[] = $css;
}
$this->css[] = $css;
}
else if (!in_array($css, $this->css))
{
Expand Down

0 comments on commit 79cd472

Please sign in to comment.