Skip to content

Commit 9b006b5

Browse files
committed
Extension manager: when no url or upload given, do nothing
1 parent 7f647da commit 9b006b5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/plugins/extension/Installer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Installer
3939
public const STATUS_INSTALLED = 'installed';
4040
public const STATUS_REMOVED = 'removed';
4141

42-
4342
/**
4443
* Initialize a new extension installer
4544
*

lib/plugins/extension/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle()
6262
}
6363
if ($INPUT->post->str('installurl')) {
6464
$installer->installFromURL($INPUT->post->str('installurl'));
65-
} elseif (isset($_FILES['installfile'])) {
65+
} elseif (isset($_FILES['installfile']) && $_FILES['installfile']['error'] !== UPLOAD_ERR_NO_FILE) {
6666
$installer->installFromUpload('installfile');
6767
}
6868
} catch (Exception $e) {

0 commit comments

Comments
 (0)