From 2bd82e4c2decd4dd95cb612cb2779c677656bef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org> Date: Mon, 21 Sep 2020 16:25:00 +0200 Subject: [PATCH] :ambulance: fix(core) Fix PHP warning about curly brace usage issue #6115 --- include/class_standAlonePage.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_standAlonePage.inc b/include/class_standAlonePage.inc index 907832952..91ac1aab6 100644 --- a/include/class_standAlonePage.inc +++ b/include/class_standAlonePage.inc @@ -265,7 +265,7 @@ abstract 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; } -- GitLab