diff --git a/includes/sp-formatting-functions.php b/includes/sp-formatting-functions.php index 6845dbb0..463f71e0 100644 --- a/includes/sp-formatting-functions.php +++ b/includes/sp-formatting-functions.php @@ -189,9 +189,9 @@ if ( ! function_exists( 'sp_rgb_from_hex' ) ) { // Convert shorthand colors to full format, e.g. "FFF" -> "FFFFFF" $color = preg_replace( '~^(.)(.)(.)$~', '$1$1$2$2$3$3', $color ); - $rgb['R'] = hexdec( $color{0}.$color{1} ); - $rgb['G'] = hexdec( $color{2}.$color{3} ); - $rgb['B'] = hexdec( $color{4}.$color{5} ); + $rgb['R'] = hexdec( $color[0].$color[1] ); + $rgb['G'] = hexdec( $color[2].$color[3] ); + $rgb['B'] = hexdec( $color[4].$color[5] ); return $rgb; } }