tbrehm
2010-09-27 7ea431584a636289f73e662aadb16014a7cb951a
Fixed a warning when no faq categories are defined.
1 files modified
5 ■■■■■ changed files
interface/web/help/lib/module.conf.php 5 ●●●●● patch | view | raw | blame | history
interface/web/help/lib/module.conf.php
@@ -56,11 +56,12 @@
$sql = "SELECT * FROM help_faq_sections";
$res = $app->db->queryAllRecords($sql);
//* all the content sections
foreach($res as $v)
{
if(is_array($res)) {
    foreach($res as $v) {
        $itemsfaq[] = array( 'title'   => $v['hfs_name'],
                  'target'  => 'content',
                  'link'    => 'help/faq_list.php?hfs_id='.$v['hfs_id']);
    }
}
$module['nav'][] = array( 'title' => 'FAQ',