From 39e6e301fa7a8230bd1cc390253a71a9f015a700 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Wed, 30 Oct 2024 16:02:24 -0400 Subject: [PATCH] Fix deprecated null pass in Captcha --- application/libraries/Zend/Form/Element/Captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Zend/Form/Element/Captcha.php b/application/libraries/Zend/Form/Element/Captcha.php index d18ba8403f..179ca957b0 100644 --- a/application/libraries/Zend/Form/Element/Captcha.php +++ b/application/libraries/Zend/Form/Element/Captcha.php @@ -228,7 +228,7 @@ public function getPluginLoader($type) */ public function addPrefixPath($prefix, $path, $type = null) { - $type = strtoupper($type); + $type = is_string($type) ? strtoupper($type) : $type; switch ($type) { case null: $loader = $this->getPluginLoader(self::CAPTCHA);