summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-14 12:57:03 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-14 12:57:10 +0200
commitd8864d4f4bd54a314b1d7c7945578b95f24477d1 (patch)
tree96c19a72c77d3f5097c53a5e3c53931b91641ee9 /lib
parentd3bf01376150ffd5de18cdc53f5e66b0c4979526 (diff)
downloadnextcloud-server-d8864d4f4bd54a314b1d7c7945578b95f24477d1.tar.gz
nextcloud-server-d8864d4f4bd54a314b1d7c7945578b95f24477d1.zip
show error when installing an app has failed
Diffstat (limited to 'lib')
-rwxr-xr-xlib/app.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/app.php b/lib/app.php
index 1c81fbd4242..807d8955d8f 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -139,13 +139,18 @@ class OC_App{
if(!is_numeric($app)){
OC_Installer::installShippedApp($app);
}else{
- $download=OC_OCSClient::getApplicationDownload($app,1);
- if(isset($download['downloadlink']) and $download['downloadlink']<>'') {
+ $download=OC_OCSClient::getApplicationDownload($app,1);
+ if(isset($download['downloadlink']) and $download['downloadlink']!='') {
$app=OC_Installer::installApp(array('source'=>'http','href'=>$download['downloadlink']));
}
}
}
- OC_Appconfig::setValue( $app, 'enabled', 'yes' );
+ if($app!==false){
+ OC_Appconfig::setValue( $app, 'enabled', 'yes' );
+ return true;
+ }else{
+ return false;
+ }
}
/**