diff --git a/html/class_passwordRecovery.inc b/html/class_passwordRecovery.inc index 2cae64e1539ee61aa19e1ea6d91fde2cb8732673..825525d38a0ebe0b8098eb49e589d8babafefe1c 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 4da2e4e2757548f5c6264def07eec570e82e9b3f..430e8c000f2176d5185f71930dcfbc35d714d3b8 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; }