diff --git a/interface/web/help/lib/module.conf.php b/interface/web/help/lib/module.conf.php index c783228911027617715dffabba09b25dde4ac719..676e67512e77c9c3740f724ec5bd84434b0069fb 100644 --- a/interface/web/help/lib/module.conf.php +++ b/interface/web/help/lib/module.conf.php @@ -56,11 +56,12 @@ if($_SESSION['s']['user']['typ'] == 'admin') { $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',