From 6c580e335200090bd122b94d528df2579ea0eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 12:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/Input.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Abstracts/Input.php b/System/Abstracts/Input.php index bd595e56..d51890f1 100644 --- a/System/Abstracts/Input.php +++ b/System/Abstracts/Input.php @@ -85,6 +85,9 @@ class Input { $arrays = []; $parameters = array_slice($parameters, 1); + if (empty($parameters)) { + return $arrays; + } $this->_command = array_shift($parameters); foreach ($parameters as $parameter) { $explode = explode('=', $parameter);