summaryrefslogtreecommitdiffstats
path: root/settings/templates/help.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/templates/help.php')
-rw-r--r--settings/templates/help.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/settings/templates/help.php b/settings/templates/help.php
index b2a78ff8512..75201a86a9f 100644
--- a/settings/templates/help.php
+++ b/settings/templates/help.php
@@ -1,4 +1,4 @@
-<?php
+<?php
/**
* 2012 Frank Karlitschek frank@owncloud.org
* This file is licensed under the Affero General Public License version 3 or later.
@@ -12,13 +12,12 @@
<?php
$url=OC_Helper::linkTo( "settings", "help.php" ).'?page=';
$pageNavi=OC_Util::getPageNavi($_['pagecount'], $_['page'], $url);
- if($pageNavi)
- {
+ if($pageNavi) {
$pageNavi->printPage();
}
?>
</diV>
-<?php if(is_null($_["kbe"])):?>
+<?php if(!is_array($_["kbe"]) || !count($_["kbe"])):?>
<div class="helpblock">
<p><?php echo $l->t('Problems connecting to help database.');?></p>
<p><a href="http://apps.owncloud.com/kb"><?php echo $l->t('Go there manually.');?></a></p>