PHP Deprecated: Array and string offset access syntax with curly braces is deprecated

This commit is contained in:
2022-06-14 16:33:31 +02:00
parent 42766d07a5
commit a60db30785
8 changed files with 24 additions and 24 deletions

View File

@@ -167,7 +167,7 @@ class Authzgroups
if ($object === null || ! is_string ($object))
throw new \Exception ("Object not provided to authzgroups\\accessRight",
500);
if ($object{0} !== "/")
if ($object[0] !== "/")
$object = "/$object";
$rc = $this->allow ($module, $user, "$object");
if ($this->debug)
@@ -202,7 +202,7 @@ class Authzgroups
if ($object === null || ! is_string ($object))
throw new \Exception ("Object not provided to authzgroups\\accessWrite",
500);
if ($object{0} !== "/")
if ($object[0] !== "/")
$object = "/$object";
$rc = $this->allow ($module, $user, $object);
if ($this->debug)
@@ -239,7 +239,7 @@ class Authzgroups
if ($object === null || ! is_string ($object))
throw new \Exception ("Object not provided to authzgroups\\accessReadOnly",
500);
if ($object{0} !== "/")
if ($object[0] !== "/")
$object = "/$object";
$rc = $this->allow ($module, $user, $object);
if ($this->debug)