From 6a211f3fa15e371a6b0981cae1e230ec613734a8 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk <victor.dubiniuk@gmail.com> Date: Sun, 2 Dec 2012 22:24:14 +0300 Subject: [PATCH] Check if we have an array with data. Fix #487 --- settings/templates/help.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/templates/help.php b/settings/templates/help.php index 9bb46740f5b..75201a86a9f 100644 --- a/settings/templates/help.php +++ b/settings/templates/help.php @@ -17,7 +17,7 @@ } ?> </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> -- GitLab