Skip to content

Commit c31e38b

Browse files
committed
fix: Extension uploads
1 parent 463313d commit c31e38b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Http/Controllers/API/Settings/ExtensionController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ public function upload()
9898
(string) request()->file('extension')->path()
9999
);
100100
}
101-
[$error, $new, $old] = $this->setupNewExtension($zipFile, $verify);
101+
$list = $this->setupNewExtension($zipFile, $verify);
102+
$error = $list[0];
103+
$new = $list[1];
104+
if (isset($list[2])) $old = $list[2];
105+
else $old = [];
102106

103107
if ($error) {
104108
return $error;

0 commit comments

Comments
 (0)