PHP Deprecated: Array and string offset access syntax with curly braces is deprecated
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user