Skip to content

Commit 53f6ff5

Browse files
committed
fix: Extension search param support
1 parent c31e38b commit 53f6ff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ public function upload()
101101
$list = $this->setupNewExtension($zipFile, $verify);
102102
$error = $list[0];
103103
$new = $list[1];
104-
if (isset($list[2])) $old = $list[2];
105-
else $old = [];
104+
$old = $list[2] ?? [];
106105

107106
if ($error) {
108107
return $error;

0 commit comments

Comments
 (0)