summaryrefslogtreecommitdiffstats
path: root/admin/apps.php
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2011-06-18 22:02:45 +0200
committerKamil Domanski <kdomanski@kdemail.net>2011-06-18 22:02:45 +0200
commitbe3ee0318942f092839b3de04f193a04e397116c (patch)
tree40dafd467b6c7ec7e0e88ec0150ea11706ce0174 /admin/apps.php
parent51420a75228d10c803f102eefa3264484675616e (diff)
downloadnextcloud-server-be3ee0318942f092839b3de04f193a04e397116c.tar.gz
nextcloud-server-be3ee0318942f092839b3de04f193a04e397116c.zip
handle app repo connection failure
Diffstat (limited to 'admin/apps.php')
-rw-r--r--admin/apps.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/apps.php b/admin/apps.php
index 7ce3f4c419f..5b4e65e340e 100644
--- a/admin/apps.php
+++ b/admin/apps.php
@@ -36,7 +36,14 @@ if(isset($_GET['id'])) $id=$_GET['id']; else $id=0;
if(isset($_GET['cat'])) $cat=$_GET['cat']; else $cat=0;
$categories=OC_OCSCLIENT::getCategories();
+if($categories==NULL){
+ OC_APP::setActiveNavigationEntry( "core_apps" );
+ $tmpl = new OC_TEMPLATE( "admin", "app_noconn", "admin" );
+ $tmpl->printPage();
+ unset($tmpl);
+ exit();
+}
/*
All