From f564baf9bfe272d48a3b98f72a85123fabba1154 Mon Sep 17 00:00:00 2001 From: AndreasBissinger Date: Fri, 22 Oct 2021 14:11:29 +0200 Subject: [PATCH] Fix: Curly brace access syntax is deprecated since PHP 7.4 --- core/oecaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/oecaptcha.php b/core/oecaptcha.php index ff615d2..2959fc6 100644 --- a/core/oecaptcha.php +++ b/core/oecaptcha.php @@ -50,7 +50,7 @@ class oeCaptcha extends oxSuperCfg if (!$this->text) { $this->text = ''; for ($i = 0; $i < $this->macLength; $i++) { - $this->text .= strtolower($this->macChars{rand(0, strlen($this->macChars) - 1)}); + $this->text .= strtolower($this->macChars[rand(0, strlen($this->macChars) - 1)]); } }