Skip to content

Commit

Permalink
fix: Extension uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Feb 23, 2024
1 parent 463313d commit c31e38b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Http/Controllers/API/Settings/ExtensionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c31e38b

Please sign in to comment.