Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
ef8fc6a0
Commit
ef8fc6a0
authored
Apr 26, 2016
by
Morris Jobke
Browse files
Merge pull request #24262 from owncloud/fix-24228
check whether index is set before using it
parents
6d62a74d
4b465713
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/installer.php
View file @
ef8fc6a0
...
...
@@ -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"
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment