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)]); } }