summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-04-25 18:36:50 +0200
committerArthur Schiwon <blizzz@owncloud.com>2016-04-25 18:36:50 +0200
commit4b465713705e21439cc53fcc76d5f66b40daa931 (patch)
tree43d3ad5c11e92302783d206876d513be9552b030 /lib
parent5e57d3a0b9c42df1413c4d2245faf1bbbe768a63 (diff)
downloadnextcloud-server-4b465713705e21439cc53fcc76d5f66b40daa931.tar.gz
nextcloud-server-4b465713705e21439cc53fcc76d5f66b40daa931.zip
check whether index is set before using it
Diffstat (limited to 'lib')
-rw-r--r--lib/private/installer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 421e281e56b..24c79b2dd8c 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -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"));
}