]> source.dussan.org Git - nextcloud-server.git/commitdiff
The array and string offset access syntax using curly braces is deprecated. 16493/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 21 Jul 2019 19:19:15 +0000 (21:19 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 21 Jul 2019 19:19:15 +0000 (21:19 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
apps/theming/lib/Util.php

index 75abea142c8ce683242d6fcc31b5546a62a252a0..dbcabfb86524ae95bf363bc02da6d975d13f6fdb 100644 (file)
@@ -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;