From c31e38ba983ba6d1ed082fa95e136ffe751b8eee Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Fri, 23 Feb 2024 16:00:02 +0300 Subject: [PATCH] fix: Extension uploads --- app/Http/Controllers/API/Settings/ExtensionController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/API/Settings/ExtensionController.php b/app/Http/Controllers/API/Settings/ExtensionController.php index dc54318e..bd427ebb 100644 --- a/app/Http/Controllers/API/Settings/ExtensionController.php +++ b/app/Http/Controllers/API/Settings/ExtensionController.php @@ -98,7 +98,11 @@ public function upload() (string) request()->file('extension')->path() ); } - [$error, $new, $old] = $this->setupNewExtension($zipFile, $verify); + $list = $this->setupNewExtension($zipFile, $verify); + $error = $list[0]; + $new = $list[1]; + if (isset($list[2])) $old = $list[2]; + else $old = []; if ($error) { return $error;