move replace to inside isset
This commit is contained in:
parent
4ab7f58745
commit
195bdff91f
1 changed files with 2 additions and 2 deletions
|
@ -218,9 +218,9 @@ class OC_App{
|
|||
}else{
|
||||
$appdata=OC_OCSClient::getApplication($app);
|
||||
$download=OC_OCSClient::getApplicationDownload($app, 1);
|
||||
// Replace spaces in download link without encoding entire URL
|
||||
$download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']);
|
||||
if(isset($download['downloadlink']) and $download['downloadlink']!='') {
|
||||
// Replace spaces in download link without encoding entire URL
|
||||
$download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']);
|
||||
$info = array('source'=>'http', 'href'=>$download['downloadlink'], 'appdata'=>$appdata);
|
||||
$app=OC_Installer::installApp($info);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue