Skip to content
Snippets Groups Projects
Commit 89097498 authored by Jared Hancock's avatar Jared Hancock
Browse files

client: Only show "Featured Questions" header if there are questions

parent bf2395b2
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ $BUTTONS = isset($BUTTONS) ? $BUTTONS : true;
<?php } ?>
<div class="content"><?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?>
if (count($faqs)) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div>
<?php foreach ($faqs as $F) { ?>
<div><a href="<?php echo ROOT_PATH; ?>kb/faq.php?id=<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment