[Pkg-owncloud-commits] [owncloud] 172/394: Check if we have an array with data. Fix #487

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:56 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 67682ec2597b8804667acfab3118b7d3e2d8285c
Author: Victor Dubiniuk <victor.dubiniuk at gmail.com>
Date:   Sun Dec 2 22:24:14 2012 +0300

    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 b2a78ff..7a6390a 100644
--- a/settings/templates/help.php
+++ b/settings/templates/help.php
@@ -18,7 +18,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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list