From: Daniel Kesselberg Date: Sun, 21 Jul 2019 19:19:15 +0000 (+0200) Subject: The array and string offset access syntax using curly braces is deprecated. X-Git-Tag: v17.0.0beta1~99^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F16493%2Fhead;p=nextcloud-server.git The array and string offset access syntax using curly braces is deprecated. Signed-off-by: Daniel Kesselberg --- diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index 75abea142c8..dbcabfb8652 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -111,7 +111,7 @@ class Util { public function hexToRGB($color) { $hex = preg_replace("/[^0-9A-Fa-f]/", '', $color); if (strlen($hex) === 3) { - $hex = $hex{0} . $hex{0} . $hex{1} . $hex{1} . $hex{2} . $hex{2}; + $hex = $hex[0] . $hex[0] . $hex[1] . $hex[1] . $hex[2] . $hex[2]; } if (strlen($hex) !== 6) { return 0;