From e0f687397b6636b6da2079bf797d4a8230378ed5 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 25 Apr 2016 18:36:50 +0200 Subject: check whether index is set before using it --- lib/private/installer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/installer.php b/lib/private/installer.php index 3db8efbfbee..36b86558a68 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -263,7 +263,8 @@ class OC_Installer{ //download the file if necessary if($data['source']=='http') { $pathInfo = pathinfo($data['href']); - $path=OC_Helper::tmpFile('.' . $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")); } -- cgit v1.2.3