]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if we have an array with data. Fix #487
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sun, 2 Dec 2012 19:24:14 +0000 (22:24 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Sun, 2 Dec 2012 20:54:54 +0000 (23:54 +0300)
settings/templates/help.php

index 9bb46740f5b8bb111fd368ddd605ec031b11966f..75201a86a9f3d3fe37c0e90caea708ff41b111f6 100644 (file)
@@ -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>