mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #24262 from owncloud/fix-24228
check whether index is set before using it
This commit is contained in:
commit
ef8fc6a03c
1 changed files with 2 additions and 1 deletions
|
|
@ -269,7 +269,8 @@ class OC_Installer{
|
|||
//download the file if necessary
|
||||
if($data['source']=='http') {
|
||||
$pathInfo = pathinfo($data['href']);
|
||||
$path = \OC::$server->getTempManager()->getTemporaryFile('.' . $pathInfo['extension']);
|
||||
$extension = isset($pathInfo['extension']) ? '.' . $pathInfo['extension'] : '';
|
||||
$path = \OC::$server->getTempManager()->getTemporaryFile($extension);
|
||||
if(!isset($data['href'])) {
|
||||
throw new \Exception($l->t("No href specified when installing app from http"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue