diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 21:19:15 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-07-21 21:19:15 +0200 |
commit | 1b0f30b1ab878699d54afc20cb1a01c6a6827421 (patch) | |
tree | c577deb2cf1aacf4c910bc5a713b93e28789d781 /apps/theming/lib | |
parent | d15ad1b5afa8dc869407b4bedab7a838f3348eca (diff) | |
download | nextcloud-server-1b0f30b1ab878699d54afc20cb1a01c6a6827421.tar.gz nextcloud-server-1b0f30b1ab878699d54afc20cb1a01c6a6827421.zip |
The array and string offset access syntax using curly braces is deprecated.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Util.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |