Skip to content

Commit 7ea4315

Browse files
committed
Fixed a warning when no faq categories are defined.
1 parent 04e09af commit 7ea4315

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interface/web/help/lib/module.conf.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@
5656
$sql = "SELECT * FROM help_faq_sections";
5757
$res = $app->db->queryAllRecords($sql);
5858
//* all the content sections
59-
foreach($res as $v)
60-
{
59+
if(is_array($res)) {
60+
foreach($res as $v) {
6161
$itemsfaq[] = array( 'title' => $v['hfs_name'],
6262
'target' => 'content',
6363
'link' => 'help/faq_list.php?hfs_id='.$v['hfs_id']);
64+
}
6465
}
6566

6667
$module['nav'][] = array( 'title' => 'FAQ',

0 commit comments

Comments
 (0)