From e4531d21b84ce2b07e2eeb57d35516685d5a960f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org> Date: Tue, 22 Jun 2021 15:14:41 +0200 Subject: [PATCH] :ambulance: fix(core) Remove usages of curly brace syntax for arrays issue #6167 --- html/class_passwordRecovery.inc | 2 +- include/class_userinfo.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/class_passwordRecovery.inc b/html/class_passwordRecovery.inc index 2cae64e15..825525d38 100644 --- a/html/class_passwordRecovery.inc +++ b/html/class_passwordRecovery.inc @@ -239,7 +239,7 @@ class standAlonePage { $max = strlen($base) - 1; $randomhash = ''; while (strlen($randomhash) < $len + 1) { - $randomhash .= $base{random_int(0, $max)}; + $randomhash .= $base[random_int(0, $max)]; } return $randomhash; } diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index 4da2e4e27..430e8c000 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -250,7 +250,7 @@ class userinfo foreach ($without_self_acl[$sdn][$dn] as $acl_id => $acl_set) { /* Remember which ACL set has speicial user filter */ - if (isset($acl_set['filter']{1})) { + if (isset($acl_set['filter'][1])) { $this->ACLperPath_usesFilter[$sdn] = TRUE; } -- GitLab