Skip to content

Commit

Permalink
Fix wrapped results when using getColorPallete - refs BT#15394
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Mar 20, 2019
1 parent 633446b commit e26cf2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Chamilo/CoreBundle/Component/Utils/ChamiloApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ public static function getColorPalette(
}
if ($wrapInRGBA) {
foreach ($palette as $index => $color) {
$palette[$index] = 'rgba('.$palette[$index].')';
$color = trim($color);
$palette[$index] = 'rgba('.$color.')';
}
}
// If we want more colors, loop through existing colors
Expand Down

0 comments on commit e26cf2b

Please sign in to comment.