From db24fef037468caecf6fcb05e1e00b927a42fd23 Mon Sep 17 00:00:00 2001 From: Tobias Zulauf Date: Sun, 18 Jul 2021 08:38:43 +0200 Subject: [PATCH] Fix short array syntax (#34802) --- administrator/components/com_installer/models/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_installer/models/install.php b/administrator/components/com_installer/models/install.php index d3eaa3a76f1e..e206251492bd 100644 --- a/administrator/components/com_installer/models/install.php +++ b/administrator/components/com_installer/models/install.php @@ -388,7 +388,7 @@ protected function _getPackageFromUrl() // We only allow http & https here $uri = new JUri($url); - if (!in_array($uri->getScheme(), ['http', 'https'])) + if (!in_array($uri->getScheme(), array('http', 'https'))) { JError::raiseWarning('', JText::_('COM_INSTALLER_MSG_INSTALL_INVALID_URL_SCHEME'));